From 26975bf7d05e40dd91b18969955d85ed0c3f4c54 Mon Sep 17 00:00:00 2001 From: Prakriti-nith Date: Thu, 9 Aug 2018 03:42:40 +0530 Subject: [PATCH] Shift chart_class, modules and css to third parameter --- lib/daru/view/adapters/highcharts.rb | 3 +- lib/daru/view/adapters/highcharts/display.rb | 20 +- spec/adapters/highcharts/display_spec.rb | 43 +- ...Area chart (Exporting examples also).ipynb | 1498 +++++------ spec/dummy_iruby/HighCharts - Bar Chart.ipynb | 1466 +++++------ .../HighCharts - Custom styling in CSS.ipynb | 2037 ++++++++------- .../HighCharts - column charts.ipynb | 1506 +++++------ spec/dummy_iruby/HighCharts- Pie charts.ipynb | 1482 +++++------ ...s - Countries with data as DataFrame.ipynb | 1545 ++++++------ spec/dummy_iruby/HighMaps - Dynamic.ipynb | 1467 +++++------ spec/dummy_iruby/HighMaps | General.ipynb | 1497 +++++------ .../dummy_iruby/HighMaps | Series Types.ipynb | 1497 +++++------ .../Highcharts - Combinations .ipynb | 1466 +++++------ .../Highcharts - Daynamic charts.ipynb | 1458 +++++------ ...s - More Chart Types (Using modules).ipynb | 1707 ++++++------- .../Highcharts - line graphs.ipynb | 1502 +++++------ .../Highcharts - line graphs2.ipynb | 1468 +++++------ .../Highcharts - scatter -bubble charts.ipynb | 1537 ++++++----- ...eries method and highcharts examples.ipynb | 1500 +++++------ .../dummy_iruby/Highstock - Chart types.ipynb | 1702 ++++++------- spec/dummy_iruby/Highstock - General.ipynb | 1519 +++++------ .../Highstock - Various features.ipynb | 1486 +++++------ spec/dummy_iruby/Load Multiple Adapters.ipynb | 1195 ++++----- .../Multiple Charts in a cell.ipynb | 2243 +++++++++-------- ...generated from daru) as data source.ipynb | 1467 +++++------ 25 files changed, 17224 insertions(+), 17087 deletions(-) diff --git a/lib/daru/view/adapters/highcharts.rb b/lib/daru/view/adapters/highcharts.rb index 2254f42..30169c9 100644 --- a/lib/daru/view/adapters/highcharts.rb +++ b/lib/daru/view/adapters/highcharts.rb @@ -28,7 +28,7 @@ module HighchartsAdapter # # @param [Array/Daru::DataFrame/Daru::Vector] data # - def init(data=[], options={}, _user_options={}) + def init(data=[], options={}, user_options={}) # Alternate way is using `add_series` method. # # There are many options present in Highcharts so it is better to use @@ -53,6 +53,7 @@ def init(data=[], options={}, _user_options={}) f.series(type: series_type, name: series_name, data: data_new) end end + @chart.user_options = user_options @chart end diff --git a/lib/daru/view/adapters/highcharts/display.rb b/lib/daru/view/adapters/highcharts/display.rb index 550c37e..a43eb5c 100644 --- a/lib/daru/view/adapters/highcharts/display.rb +++ b/lib/daru/view/adapters/highcharts/display.rb @@ -53,6 +53,7 @@ class HighChart # @return [String] The ID of the DIV element that the HighChart should # be rendered in attr_accessor :div_id + attr_accessor :user_options # @example # # To display the html code of the chart, use `to_html`. To see the same @@ -106,7 +107,11 @@ def to_html_iruby(placeholder=random_canvas_id) # @return [String] css code of the chart def high_chart_css(placeholder) # contains the css provided by the user as a String array - css_data = options[:css].nil? ? '' : options.delete(:css) + css_data = if user_options && user_options[:css] + user_options[:css] + else + '' + end css_script = '' if css_data != '' css_script << "\n \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 3, @@ -901,13 +911,7 @@ "opts = {\n", " chart: {\n", " type: 'column'\n", - " },\n", - " css: ['.highcharts-color-0 {fill: #7cb5ec;stroke: #7cb5ec;}', \n", - " '.highcharts-axis.highcharts-color-0 .highcharts-axis-line {stroke: #7cb5ec;}',\n", - " '.highcharts-color-1 {fill: #90ed7d;stroke: #90ed7d;}',\n", - " '.highcharts-axis.highcharts-color-1 .highcharts-axis-line {stroke: #90ed7d;}',\n", - " '.highcharts-yaxis .highcharts-axis-line {stroke-width: 2px;}'\n", - " ], \n", + " }, \n", " title: {\n", " text: 'Styling axes'\n", " },\n", @@ -932,6 +936,15 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-color-0 {fill: #7cb5ec;stroke: #7cb5ec;}', \n", + " '.highcharts-axis.highcharts-color-0 .highcharts-axis-line {stroke: #7cb5ec;}',\n", + " '.highcharts-color-1 {fill: #90ed7d;stroke: #90ed7d;}',\n", + " '.highcharts-axis.highcharts-color-1 .highcharts-axis-line {stroke: #90ed7d;}',\n", + " '.highcharts-yaxis .highcharts-axis-line {stroke-width: 2px;}'\n", + " ] \n", + "}\n", + "\n", "series_dt = [{\n", " data: [1, 3, 2, 4]\n", " }, {\n", @@ -939,7 +952,7 @@ " yAxis: 1\n", "}]\n", "\n", - "column = Daru::View::Plot.new(series_dt, opts)\n", + "column = Daru::View::Plot.new(series_dt, opts, user_opts)\n", "column.show_in_iruby" ] }, @@ -970,21 +983,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 4, @@ -998,7 +1011,6 @@ " type: 'line'\n", " },\n", " chart_class: 'stock',\n", - " css: ['.highcharts-background {fill: #efefef;stroke: #a4edba;stroke-width: 2px;}'],\n", " title: {\n", " text: 'Chart border and background by CSS'\n", " },\n", @@ -1017,9 +1029,13 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-background {fill: #efefef;stroke: #a4edba;stroke-width: 2px;}'] \n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -1050,21 +1066,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 5, @@ -1077,7 +1093,6 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-button-symbol{fill: #90ed7d;stroke: #90ed7d;}'],\n", " title: {\n", " text: 'Chart border and background by CSS'\n", " },\n", @@ -1096,9 +1111,13 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-button-symbol{fill: #90ed7d;stroke: #90ed7d;}'] \n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -1129,12 +1148,12 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 6, @@ -1164,9 +1183,6 @@ ], "source": [ " opts = {\n", - " chart_class: 'stock',\n", - " css: ['.highcharts-candlestick-series .highcharts-point {stroke: #2f7ed8;}',\n", - " '.highcharts-candlestick-series .highcharts-point-up {stroke: silver;fill: silver;}'],\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1261,7 +1277,13 @@ " [1515110400000,173.44,175.37,173.05,175.00]\n", " ]\n", "\n", - "candle_stick = Daru::View::Plot.new(data, opts)\n", + "user_opts = {\n", + " chart_class: 'stock',\n", + " css: ['.highcharts-candlestick-series .highcharts-point {stroke: #2f7ed8;}',\n", + " '.highcharts-candlestick-series .highcharts-point-up {stroke: silver;fill: silver;}']\n", + "}\n", + "\n", + "candle_stick = Daru::View::Plot.new(data, opts, user_opts)\n", "candle_stick.show_in_iruby" ] }, @@ -1292,25 +1314,25 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 7, @@ -1326,11 +1348,6 @@ " chart: {\n", " type: 'pie'\n", " },\n", - " css: ['.highcharts-point.highcharts-color-2,',\n", - " '.highcharts-legend-item.highcharts-color-2 .highcharts-point,',\n", - " '.highcharts-tooltip .highcharts-color-2 {fill: #78a8d1;}',\n", - " '.highcharts-tooltip.highcharts-color-2,',\n", - " '.highcharts-data-label-connector.highcharts-color-2 {stroke: #78a8d1;}'],\n", " xAxis: {\n", " categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n", " },\n", @@ -1342,6 +1359,14 @@ " }\n", " }\n", "}\n", + "\n", + "user_opts = {\n", + " css: ['.highcharts-point.highcharts-color-2,',\n", + " '.highcharts-legend-item.highcharts-color-2 .highcharts-point,',\n", + " '.highcharts-tooltip .highcharts-color-2 {fill: #78a8d1;}',\n", + " '.highcharts-tooltip.highcharts-color-2,',\n", + " '.highcharts-data-label-connector.highcharts-color-2 {stroke: #78a8d1;}']\n", + "}\n", " \n", "data = [\n", " ['Apples', 29.9, false],\n", @@ -1353,7 +1378,7 @@ " ['Prunes', 135.6, true, true],\n", " ['Avocados', 148.5, false]\n", "]\n", - "pie = Daru::View::Plot.new(data, opts)\n", + "pie = Daru::View::Plot.new(data, opts, user_opts)\n", "pie.show_in_iruby" ] }, @@ -1384,21 +1409,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 8, @@ -1411,9 +1436,8 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-crosshair{fill: #90ed7d;stroke: #90ed7d;}'],\n", " title: {\n", - " text: 'Chart border and background by CSS'\n", + " text: 'Crosshair by CSS'\n", " },\n", "\n", " xAxis: {\n", @@ -1434,9 +1458,13 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-crosshair{fill: #90ed7d;stroke: #90ed7d;}']\n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -1448,75 +1476,6 @@ { "data": { "application/javascript": [ - "\n", - " /* BEGIN highcharts-more.js */\n", - "\n", - "/*\n", - " Highcharts JS v5.0.12 (2017-05-24)\n", - "\n", - " (c) 2009-2016 Torstein Honsi\n", - "\n", - " License: www.highcharts.com/license\n", - "*/\n", - "(function(v){\"object\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\"pane\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\n", - "this.group||(this.group=d.g(\"pane-group\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\"left\":x>180+n&&x<360-n?\"right\":\"center\"):u=\"center\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\"getMarkPath\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\n", - "2+a),d=[\"M\",d,e,\"L\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\"arearange\",\"area\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\n", - "{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\n", - "(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\n", - "yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\"left\"),n.step={left:\"right\",center:\"center\",right:\"left\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\n", - "drawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\"right\":\"left\"):n||(c.verticalAlign=q?\"top\":\"bottom\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\n", - "arguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\"left\":\"right\"):n||(c.verticalAlign=q?\"bottom\":\"top\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\n", - "r(\"areasplinerange\",\"arearange\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\"columnrange\",\"arearange\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\n", - "f,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\"path\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\n", - "drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},\n", - "showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\n", - "h,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:d.path||[\"M\",-l,-q/2,\"L\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\"z\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\n", - "zIndex:1}).addClass(\"highcharts-dial\").add(b.group),a.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":g.borderWidth||0,stroke:g.borderColor||\"#cccccc\",fill:g.backgroundColor||\"#000000\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\n", - "b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\n", - "{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\"boxplot\",\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,\n", - "medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\"stroke-width\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\n", - "function(d){null!==b[d]&&(b[d+\"Plot\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\"animate\":\"attr\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\n", - "x||(f.graphic=x=b.g(\"point\").add(a.group),f.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(x),y&&(f.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(x)),z&&(f.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(x)),f.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\"stroke-width\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\n", - "I,C[\"stroke-width\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\"stroke-width\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\"M\",u,e,\"L\",u,k,\"M\",u,d,\"L\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\"M\",q,e,\"L\",q,d,\"L\",m,d,\"L\",m,e,\"L\",q,e,\"z\"]})),y&&(n=f.whiskers.strokeWidth()%2/\n", - "2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\"M\",u-t,k,\"L\",u+t,k,\"M\",u-t,c,\"L\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\"M\",q,g,\"L\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", - "whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\n", - "f=a.seriesType,h=a.seriesTypes;f(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\"y\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\n", - "0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\n", - "alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\"xData\":\"yData\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\n", - "e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\"minSize\",\"maxSize\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\n", - "rightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\"xy\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\n", - "(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\"getPointSpline\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\"C\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\"M\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\"translate\",\n", - "function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\"getGraphPath\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\"alignDataLabel\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\"getCoordinates\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\n", - "a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\"getAxes\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\"drawChartBox\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\"get\",\n", - "function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\n", - "\n", - " /* END highcharts-more.js*/\n", "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", @@ -1525,7 +1484,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v5.0.12 (2017-05-24)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(v){\\\"object\\\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\\nthis.group||(this.group=d.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\\\"left\\\":x>180+n&&x<360-n?\\\"right\\\":\\\"center\\\"):u=\\\"center\\\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\\\"getMarkPath\\\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\\n2+a),d=[\\\"M\\\",d,e,\\\"L\\\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\\n{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\\n(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\\nyBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\\\"left\\\"),n.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\\ndrawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\\\"right\\\":\\\"left\\\"):n||(c.verticalAlign=q?\\\"top\\\":\\\"bottom\\\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\\narguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\\\"left\\\":\\\"right\\\"):n||(c.verticalAlign=q?\\\"bottom\\\":\\\"top\\\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\\nr(\\\"areasplinerange\\\",\\\"arearange\\\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\\\"columnrange\\\",\\\"arearange\\\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\\nf,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\\\"path\\\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\\ndrawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},\\nshowInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\\nh,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:d.path||[\\\"M\\\",-l,-q/2,\\\"L\\\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\\\"z\\\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\\nzIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),a.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":g.borderWidth||0,stroke:g.borderColor||\\\"#cccccc\\\",fill:g.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\\nb.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\\n{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\\\"boxplot\\\",\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,\\nmedianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\\\"stroke-width\\\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\\nfunction(d){null!==b[d]&&(b[d+\\\"Plot\\\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\\\"animate\\\":\\\"attr\\\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\\nx||(f.graphic=x=b.g(\\\"point\\\").add(a.group),f.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(x),y&&(f.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(x)),z&&(f.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(x)),f.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\\\"stroke-width\\\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\\nI,C[\\\"stroke-width\\\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\\\"stroke-width\\\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\\\"M\\\",u,e,\\\"L\\\",u,k,\\\"M\\\",u,d,\\\"L\\\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\\\"M\\\",q,e,\\\"L\\\",q,d,\\\"L\\\",m,d,\\\"L\\\",m,e,\\\"L\\\",q,e,\\\"z\\\"]})),y&&(n=f.whiskers.strokeWidth()%2/\\n2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\\\"M\\\",u-t,k,\\\"L\\\",u+t,k,\\\"M\\\",u-t,c,\\\"L\\\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\\\"M\\\",q,g,\\\"L\\\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\nwhiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\\nf=a.seriesType,h=a.seriesTypes;f(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\\\"y\\\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\\n0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\\nalignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\\\"xData\\\":\\\"yData\\\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\\ne.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\\nrightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\\"xy\\\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\\n(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\\\"getPointSpline\\\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\\\"C\\\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\\\"M\\\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\\\"translate\\\",\\nfunction(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\\\"getGraphPath\\\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\\\"alignDataLabel\\\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\\\"getCoordinates\\\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\\na.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\\\"getAxes\\\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\\\"drawChartBox\\\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\\\"get\\\",\\nfunction(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1536,26 +1495,26 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 9, @@ -1569,14 +1528,6 @@ " type: 'gauge'\n", " },\n", " modules: ['highcharts-more'],\n", - " \n", - " css: ['.outer-pane {fill: #EFEFEF;}',\n", - " '.middle-pane {stroke-width: 1px;stroke: #AAA;}',\n", - " '.inner-pane {fill: #DDDDDD;}',\n", - " '.green-band {fill: #55BF3B;fill-opacity: 1;}',\n", - " '.yellow-band {fill: #DDDF0D;fill-opacity: 1;}',\n", - " '.red-band {fill: #DF5353;fill-opacity: 1;}'],\n", - " \n", " title: {\n", " text: 'Speedometer'\n", " },\n", @@ -1642,9 +1593,18 @@ " }\n", "}\n", "\n", + "user_options = {\n", + " css: ['.outer-pane {fill: #EFEFEF;}',\n", + " '.middle-pane {stroke-width: 1px;stroke: #AAA;}',\n", + " '.inner-pane {fill: #DDDDDD;}',\n", + " '.green-band {fill: #55BF3B;fill-opacity: 1;}',\n", + " '.yellow-band {fill: #DDDF0D;fill-opacity: 1;}',\n", + " '.red-band {fill: #DF5353;fill-opacity: 1;}']\n", + "}\n", + "\n", "data = Daru::Vector.new([80])\n", "\n", - "gauge = Daru::View::Plot.new(data, opts)\n", + "gauge = Daru::View::Plot.new(data, opts, user_options)\n", "gauge.show_in_iruby" ] }, @@ -1675,22 +1635,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 10, @@ -1703,10 +1663,6 @@ " chart: {\n", " type: 'scatter'\n", " },\n", - " \n", - " css: ['.highcharts-xaxis-grid .highcharts-grid-line {stroke-width: 2px;stroke: #d8d8d8;}',\n", - " '.highcharts-xaxis .highcharts-tick {stroke-width: 2px;stroke: #d8d8d8;}'],\n", - "\n", " title: {\n", " text: 'Styling grid and ticks'\n", " },\n", @@ -1718,6 +1674,11 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-xaxis-grid .highcharts-grid-line {stroke-width: 2px;stroke: #d8d8d8;}',\n", + " '.highcharts-xaxis .highcharts-tick {stroke-width: 2px;stroke: #d8d8d8;}']\n", + "}\n", + "\n", "data = [[161.2, 51.6], [167.5, 59.0], [159.5, 49.2], [157.0, 63.0], [155.8, 53.6],\n", " [170.0, 59.0], [159.1, 47.6], [166.0, 69.8], [176.2, 66.8], [160.2, 75.2],\n", " [172.5, 55.2], [170.9, 54.2], [172.9, 62.5], [153.4, 42.0], [160.0, 50.0],\n", @@ -1744,7 +1705,7 @@ " }\n", " )\n", "\n", - "scatter = Daru::View::Plot.new(df, opts)\n", + "scatter = Daru::View::Plot.new(df, opts, user_opts)\n", "scatter.show_in_iruby" ] }, @@ -1775,21 +1736,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 11, @@ -1805,7 +1766,6 @@ " chart: {\n", " type: 'pie'\n", " },\n", - " css: ['.highcharts-legend-box {fill: black;fill-opacity: 0.3;stroke: black;stroke-width: 1px;}'],\n", " xAxis: {\n", " categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n", " },\n", @@ -1818,6 +1778,10 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-legend-box {fill: black;fill-opacity: 0.3;stroke: black;stroke-width: 1px;}']\n", + "}\n", + "\n", "data = [\n", " ['Apples', 29.9, false],\n", " ['Pears', 71.5, false],\n", @@ -1828,7 +1792,7 @@ " ['Prunes', 135.6, true, true],\n", " ['Avocados', 148.5, false]\n", "]\n", - "pie = Daru::View::Plot.new(data, opts)\n", + "pie = Daru::View::Plot.new(data, opts, user_opts)\n", "pie.show_in_iruby" ] }, @@ -1859,18 +1823,18 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 12, @@ -1908,16 +1872,6 @@ " width: 500,\n", " borderWidth: 2\n", " },\n", - " \n", - " css: ['.highcharts-legend-box {fill: black;fill-opacity: 0.3;stroke: black;stroke-width: 1px;}',\n", - " '.highcharts-legend-item text {fill: #e0e0e0;transition: fill 250ms;}',\n", - " '.highcharts-legend-item:hover text {fill: white;}',\n", - " '.highcharts-legend-item-hidden * {fill: gray !important;stroke: gray !important;}',\n", - " '.highcharts-legend-title {fill: white;font-style: italic;}',\n", - " '.highcharts-legend-navigation {fill: white;}',\n", - " '.highcharts-legend-nav-active {fill: white;}',\n", - " '.highcharts-legend-nav-inactive {fill: gray;}'],\n", - "\n", " title: {\n", " text: 'Legend styled by CSS'\n", " },\n", @@ -1937,6 +1891,17 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-legend-box {fill: black;fill-opacity: 0.3;stroke: black;stroke-width: 1px;}',\n", + " '.highcharts-legend-item text {fill: #e0e0e0;transition: fill 250ms;}',\n", + " '.highcharts-legend-item:hover text {fill: white;}',\n", + " '.highcharts-legend-item-hidden * {fill: gray !important;stroke: gray !important;}',\n", + " '.highcharts-legend-title {fill: white;font-style: italic;}',\n", + " '.highcharts-legend-navigation {fill: white;}',\n", + " '.highcharts-legend-nav-active {fill: white;}',\n", + " '.highcharts-legend-nav-inactive {fill: gray;}']\n", + "}\n", + "\n", "series_dt = [{\n", " data: \"(function () {\n", " var names = 'Ari,Bjartur,Bogi,Bragi,Dánjal,Dávur,Eli,Emil,Fróði,Hákun,Hanus,Hjalti,Ísakur,' +\n", @@ -1955,7 +1920,7 @@ " showInLegend: true\n", "}]\n", "\n", - "pie = Daru::View::Plot.new(series_dt, opts)\n", + "pie = Daru::View::Plot.new(series_dt, opts, user_opts)\n", "pie.show_in_iruby" ] }, @@ -1986,21 +1951,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 13, @@ -2013,8 +1978,6 @@ " chart: {\n", " type: 'scatter'\n", " },\n", - " \n", - " css: ['.highcharts-minor-grid-line {stroke-dasharray: 2, 2;stroke-width: 2px;stroke: #d8d8d8;}'],\n", "\n", " title: {\n", " text: 'Styling grid and ticks'\n", @@ -2027,6 +1990,10 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-minor-grid-line {stroke-dasharray: 2, 2;stroke-width: 2px;stroke: #d8d8d8;}']\n", + "}\n", + "\n", "data = [[161.2, 51.6], [167.5, 59.0], [159.5, 49.2], [157.0, 63.0], [155.8, 53.6],\n", " [170.0, 59.0], [159.1, 47.6], [166.0, 69.8], [176.2, 66.8], [160.2, 75.2],\n", " [172.5, 55.2], [170.9, 54.2], [172.9, 62.5], [153.4, 42.0], [160.0, 50.0],\n", @@ -2053,7 +2020,7 @@ " }\n", " )\n", "\n", - "scatter = Daru::View::Plot.new(df, opts)\n", + "scatter = Daru::View::Plot.new(df, opts, user_opts)\n", "scatter.show_in_iruby" ] }, @@ -2084,21 +2051,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 14, @@ -2110,11 +2077,9 @@ "# line with markers and shadow\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", - " css: ['.highcharts-navigator-handle{fill: #90ed7d;stroke: #90ed7d;}'],\n", " title: {\n", " text: 'AAPL Stock Price'\n", " },\n", @@ -2132,6 +2097,11 @@ " }\n", " }\n", "\n", + " user_opts = {\n", + " chart_class: 'stock',\n", + " css: ['.highcharts-navigator-handle{fill: #90ed7d;stroke: #90ed7d;}']\n", + " }\n", + "\n", " data = [\n", " [1147651200000,67.79],\n", " [1147737600000,64.98],\n", @@ -2170,7 +2140,7 @@ " }\n", " )\n", "\n", - "line_series_shadow_markers = Daru::View::Plot.new(df, opts)\n", + "line_series_shadow_markers = Daru::View::Plot.new(df, opts, user_opts)\n", "line_series_shadow_markers.show_in_iruby" ] }, @@ -2201,22 +2171,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 15, @@ -2228,12 +2198,9 @@ "# line with markers and shadow\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", - " css: ['.highcharts-navigator-mask-inside{fill: #90ed7d;stroke: #90ed7d;}',\n", - " '.highcharts-navigator-outline{stroke: #90ed7d;}'],\n", " title: {\n", " text: 'AAPL Stock Price'\n", " },\n", @@ -2282,6 +2249,12 @@ " [1180569600000,121.19],\n", " ]\n", "\n", + " user_opts = {\n", + " chart_class: 'stock',\n", + " css: ['.highcharts-navigator-mask-inside{fill: #90ed7d;stroke: #90ed7d;}',\n", + " '.highcharts-navigator-outline{stroke: #90ed7d;}']\n", + " }\n", + "\n", " df = Daru::DataFrame.new(\n", " {\n", " data1: data.map {|row| row[0]},\n", @@ -2289,7 +2262,7 @@ " }\n", " )\n", "\n", - "line_series_shadow_markers = Daru::View::Plot.new(df, opts)\n", + "line_series_shadow_markers = Daru::View::Plot.new(df, opts, user_opts)\n", "line_series_shadow_markers.show_in_iruby" ] }, @@ -2320,26 +2293,26 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 16, @@ -2353,12 +2326,6 @@ " title: {\n", " text: 'Monthly temperatures in a random cold place'\n", " },\n", - " css: ['.highcharts-point {stroke: white;}',\n", - " '.main-color .highcharts-graph {stroke: red;}',\n", - " '.main-color, .main-color .highcharts-point {fill: red;}',\n", - " '.highcharts-graph.highcharts-negative {stroke: blue;}',\n", - " '.highcharts-area.highcharts-negative {fill: blue;}',\n", - " '.highcharts-point.highcharts-negative {fill: blue;}'],\n", " subtitle: {\n", " text: 'All series should be blue below zero'\n", " },\n", @@ -2373,6 +2340,15 @@ " }\n", " }\n", "\n", + " user_opts = {\n", + " css: ['.highcharts-point {stroke: white;}',\n", + " '.main-color .highcharts-graph {stroke: red;}',\n", + " '.main-color, .main-color .highcharts-point {fill: red;}',\n", + " '.highcharts-graph.highcharts-negative {stroke: blue;}',\n", + " '.highcharts-area.highcharts-negative {fill: blue;}',\n", + " '.highcharts-point.highcharts-negative {fill: blue;}']\n", + " }\n", + "\n", " series_dt = [\n", " {\n", " name: 'Spline',\n", @@ -2395,7 +2371,7 @@ " }\n", " ]\n", "\n", - "area_neg = Daru::View::Plot.new(series_dt, opts)\n", + "area_neg = Daru::View::Plot.new(series_dt, opts, user_opts)\n", "area_neg.show_in_iruby" ] }, @@ -2426,22 +2402,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 17, @@ -2454,8 +2430,6 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-plot-background {fill: #efffff;}',\n", - " '.highcharts-plot-border {stroke-width: 2px;stroke: #7cb5ec;}'],\n", " title: {\n", " text: 'Chart border and background by CSS'\n", " },\n", @@ -2478,9 +2452,14 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-plot-background {fill: #efffff;}',\n", + " '.highcharts-plot-border {stroke-width: 2px;stroke: #7cb5ec;}']\n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -2511,22 +2490,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 18, @@ -2539,8 +2518,6 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-title {fill: #434348;font-weight: bold;}',\n", - " \".highcharts-subtitle {font-family: 'Courier New', monospace;font-style: italic;fill: #7cb5ec;}\"],\n", " title: {\n", " text: 'Title styles ...'\n", " },\n", @@ -2567,9 +2544,14 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-title {fill: #434348;font-weight: bold;}',\n", + " \".highcharts-subtitle {font-family: 'Courier New', monospace;font-style: italic;fill: #7cb5ec;}\"]\n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -2600,22 +2582,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 19, @@ -2628,8 +2610,6 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-tooltip-box {fill: black;fill-opacity: 0.1;stroke-width: 0;}',\n", - " '.highcharts-title {fill: #434348;font-weight: bold;}'],\n", " title: {\n", " text: 'Title styles ...'\n", " },\n", @@ -2652,9 +2632,14 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-tooltip-box {fill: black;fill-opacity: 0.1;stroke-width: 0;}',\n", + " '.highcharts-title {fill: #434348;font-weight: bold;}']\n", + "}\n", + "\n", "data = Daru::Vector.new([29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4])\n", "\n", - "line = Daru::View::Plot.new(data, opts)\n", + "line = Daru::View::Plot.new(data, opts, user_opts)\n", "line.show_in_iruby" ] }, @@ -2685,30 +2670,30 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 20, @@ -2721,17 +2706,6 @@ " title: {\n", " text: 'Styled color zones'\n", " },\n", - " \n", - " css: ['.highcharts-point {stroke: white;}',\n", - " '.highcharts-graph.zone-0 {stroke: #f7a35c;}',\n", - " '.highcharts-area.zone-0 {fill: #f7a35c;}',\n", - " '.highcharts-point.zone-0 {fill: #f7a35c;}',\n", - " '.highcharts-graph.zone-1 {stroke: #7cb5ec;}',\n", - " '.highcharts-area.zone-1 {fill: #7cb5ec;}',\n", - " '.highcharts-point.zone-1 {fill: #7cb5ec;}',\n", - " '.highcharts-graph.zone-2 {stroke: #90ed7d;}',\n", - " '.highcharts-area.zone-2 {fill: #90ed7d;}',\n", - " '.highcharts-point.zone-2 {fill: #90ed7d;}'],\n", "\n", " yAxis: {\n", " min: -10\n", @@ -2753,6 +2727,19 @@ " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-point {stroke: white;}',\n", + " '.highcharts-graph.zone-0 {stroke: #f7a35c;}',\n", + " '.highcharts-area.zone-0 {fill: #f7a35c;}',\n", + " '.highcharts-point.zone-0 {fill: #f7a35c;}',\n", + " '.highcharts-graph.zone-1 {stroke: #7cb5ec;}',\n", + " '.highcharts-area.zone-1 {fill: #7cb5ec;}',\n", + " '.highcharts-point.zone-1 {fill: #7cb5ec;}',\n", + " '.highcharts-graph.zone-2 {stroke: #90ed7d;}',\n", + " '.highcharts-area.zone-2 {fill: #90ed7d;}',\n", + " '.highcharts-point.zone-2 {fill: #90ed7d;}']\n", + "}\n", + "\n", "series_dt = [{\n", " type: 'areaspline',\n", " data: [-10, -5, 0, 5, 10, 15, 10, 10, 5, 0, -5]\n", @@ -2761,7 +2748,7 @@ " data: [1, 13, 2, -4, 6, 7, 5, 3, 2, -1, 2]\n", "}]\n", "\n", - "area_spline = Daru::View::Plot.new(series_dt, opts)\n", + "area_spline = Daru::View::Plot.new(series_dt, opts, user_opts)\n", "area_spline.show_in_iruby" ] }, @@ -2792,21 +2779,21 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 21, @@ -2819,12 +2806,15 @@ " chart: {\n", " type: 'column'\n", " },\n", - " css: ['.highcharts-plot-background {fill: #efffff;}'],\n", " title: {\n", " text: 'Column chart CSS'\n", " }\n", "}\n", "\n", + "user_opts = {\n", + " css: ['.highcharts-plot-background {fill: #efffff;}']\n", + "}\n", + "\n", "data_frame = Daru::DataFrame.new(\n", " {\n", " 'Beer' => ['Kingfisher', 'Snow', 'Bud Light', 'Tiger Beer', 'Budweiser'],\n", @@ -2832,7 +2822,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(data_frame, opts)\n", + "chart = Daru::View::Plot.new(data_frame, opts, user_opts)\n", "chart.show_in_iruby" ] }, @@ -2863,22 +2853,22 @@ "text/html": [ "\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 22, @@ -2891,14 +2881,17 @@ " chart: {\n", " type: 'line'\n", " },\n", - " css: ['.highcharts-xaxis-grid .highcharts-grid-line {stroke-width: 2px;stroke: #d8d8d8;}',\n", - " '.highcharts-xaxis .highcharts-tick {stroke-width: 2px;stroke: #d8d8d8;}'],\n", " title: {\n", " text: 'Column chart CSS'\n", " }\n", "}\n", "\n", - "chart = Daru::View::Plot.new(data_frame.first(3), opts)\n", + "user_opts = {\n", + " css: ['.highcharts-xaxis-grid .highcharts-grid-line {stroke-width: 2px;stroke: #d8d8d8;}',\n", + " '.highcharts-xaxis .highcharts-tick {stroke-width: 2px;stroke: #d8d8d8;}']\n", + "}\n", + "\n", + "chart = Daru::View::Plot.new(data_frame.first(3), opts, user_opts)\n", "chart.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/HighCharts - column charts.ipynb b/spec/dummy_iruby/HighCharts - column charts.ipynb index a3d46f2..e38f8c2 100644 --- a/spec/dummy_iruby/HighCharts - column charts.ipynb +++ b/spec/dummy_iruby/HighCharts - column charts.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"type\": \"column\",\"renderTo\": \"upaxelqdyjf\" },\"title\": { \"text\": \"Monthly Average Rainfall\" },\"subtitle\": { \"text\": \"Source: WorldClimate.com\" },\"xAxis\": { \"categories\": [ \"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\" ],\"crosshair\": true },\"yAxis\": { \"min\": 0,\"title\": { \"text\": \"Rainfall (mm)\" } },\"tooltip\": { \"headerFormat\": \"{point.key}\",\"pointFormat\": \"\",\"footerFormat\": \"
{series.name}: {point.y:.1f} mm
\",\"shared\": true,\"useHTML\": true },\"plotOptions\": { \"column\": { \"pointPadding\": 0.2,\"borderWidth\": 0 } },\"series\": [{ \"name\": \"Tokyo\",\"data\": [ 49.9,71.5,106.4,129.2,144.0,176.0,135.6,148.5,216.4,194.1,95.6,54.4 ] },{ \"name\": \"New York\",\"data\": [ 83.6,78.8,98.5,93.4,106.0,84.5,105.0,104.3,91.2,83.5,106.6,92.3 ] },{ \"name\": \"London\",\"data\": [ 48.9,38.8,39.3,41.4,47.0,48.3,59.0,59.6,52.4,65.2,59.3,51.2 ] },{ \"name\": \"Berlin\",\"data\": [ 42.4,33.2,34.5,39.7,52.6,75.5,57.4,60.4,47.6,39.1,46.8,51.1 ] }] };\n", + " var options = { \"chart\": { \"type\": \"column\",\"renderTo\": \"bpaxkowjhtn\" },\"title\": { \"text\": \"Monthly Average Rainfall\" },\"subtitle\": { \"text\": \"Source: WorldClimate.com\" },\"xAxis\": { \"categories\": [ \"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\" ],\"crosshair\": true },\"yAxis\": { \"min\": 0,\"title\": { \"text\": \"Rainfall (mm)\" } },\"tooltip\": { \"headerFormat\": \"{point.key}\",\"pointFormat\": \"\",\"footerFormat\": \"
{series.name}: {point.y:.1f} mm
\",\"shared\": true,\"useHTML\": true },\"plotOptions\": { \"column\": { \"pointPadding\": 0.2,\"borderWidth\": 0 } },\"series\": [{ \"name\": \"Tokyo\",\"data\": [ 49.9,71.5,106.4,129.2,144.0,176.0,135.6,148.5,216.4,194.1,95.6,54.4 ] },{ \"name\": \"New York\",\"data\": [ 83.6,78.8,98.5,93.4,106.0,84.5,105.0,104.3,91.2,83.5,106.6,92.3 ] },{ \"name\": \"London\",\"data\": [ 48.9,38.8,39.3,41.4,47.0,48.3,59.0,59.6,52.4,65.2,59.3,51.2 ] },{ \"name\": \"Berlin\",\"data\": [ 42.4,33.2,34.5,39.7,52.6,75.5,57.4,60.4,47.6,39.1,46.8,51.1 ] }] };\n", " \n", - " window.chart_upaxelqdyjf = new Highcharts.Chart(options);\n", + " window.chart_bpaxkowjhtn = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -995,17 +1005,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1075,17 +1085,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1190,21 +1200,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1303,17 +1313,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1395,17 +1405,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1521,17 +1531,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1828,17 +1838,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, diff --git a/spec/dummy_iruby/HighCharts- Pie charts.ipynb b/spec/dummy_iruby/HighCharts- Pie charts.ipynb index 1c77f49..6b5c403 100644 --- a/spec/dummy_iruby/HighCharts- Pie charts.ipynb +++ b/spec/dummy_iruby/HighCharts- Pie charts.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"plotBackgroundColor\": null,\"plotBorderWidth\": null,\"plotShadow\": false,\"type\": \"pie\",\"renderTo\": \"fpnlraxovci\" },\"title\": { \"text\": \"Browser market shares January, 2015 to May, 2015\" },\"tooltip\": { \"pointFormat\": \"{series.name}: {point.percentage:.1f}%\" },\"plotOptions\": { \"pie\": { \"allowPointSelect\": true,\"cursor\": \"pointer\",\"dataLabels\": { \"enabled\": true,\"format\": \"{point.name}: {point.percentage:.1f} %\",\"style\": { \"color\": (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } } } },\"series\": [{ \"name\": \"Brands\",\"colorByPoint\": true,\"data\": [ { \"name\": \"Microsoft Internet Explorer\",\"y\": 56.33 },{ \"name\": \"Chrome\",\"y\": 24.03,\"sliced\": true,\"selected\": true },{ \"name\": \"Firefox\",\"y\": 10.38 },{ \"name\": \"Safari\",\"y\": 4.77 },{ \"name\": \"Opera\",\"y\": 0.91 },{ \"name\": \"Proprietary or Undetectable\",\"y\": 0.2 } ] }] };\n", + " var options = { \"chart\": { \"plotBackgroundColor\": null,\"plotBorderWidth\": null,\"plotShadow\": false,\"type\": \"pie\",\"renderTo\": \"toevzjnirfk\" },\"title\": { \"text\": \"Browser market shares January, 2015 to May, 2015\" },\"tooltip\": { \"pointFormat\": \"{series.name}: {point.percentage:.1f}%\" },\"plotOptions\": { \"pie\": { \"allowPointSelect\": true,\"cursor\": \"pointer\",\"dataLabels\": { \"enabled\": true,\"format\": \"{point.name}: {point.percentage:.1f} %\",\"style\": { \"color\": (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' } } } },\"series\": [{ \"name\": \"Brands\",\"colorByPoint\": true,\"data\": [ { \"name\": \"Microsoft Internet Explorer\",\"y\": 56.33 },{ \"name\": \"Chrome\",\"y\": 24.03,\"sliced\": true,\"selected\": true },{ \"name\": \"Firefox\",\"y\": 10.38 },{ \"name\": \"Safari\",\"y\": 4.77 },{ \"name\": \"Opera\",\"y\": 0.91 },{ \"name\": \"Proprietary or Undetectable\",\"y\": 0.2 } ] }] };\n", " \n", - " window.chart_fpnlraxovci = new Highcharts.Chart(options);\n", + " window.chart_toevzjnirfk = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -980,17 +990,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1095,17 +1105,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1201,17 +1211,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1378,17 +1388,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, diff --git a/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb b/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb index 44195d2..c51814a 100644 --- a/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb +++ b/spec/dummy_iruby/HighMaps - Countries with data as DataFrame.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"map\": \"countries/in/in-all\",\"renderTo\": \"pzkxovyaequ\" },\"title\": { \"text\": \"Highmaps basic demo\" },\"subtitle\": { \"text\": \"Source map: India\" },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"colorAxis\": { \"min\": 0 },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ \"in-py\",0 ],[ \"in-ld\",1 ],[ \"in-wb\",2 ],[ \"in-or\",3 ],[ \"in-br\",4 ],[ \"in-sk\",5 ],[ \"in-ct\",6 ],[ \"in-tn\",7 ],[ \"in-mp\",8 ],[ \"in-2984\",9 ],[ \"in-ga\",10 ],[ \"in-nl\",11 ],[ \"in-mn\",12 ],[ \"in-ar\",13 ],[ \"in-mz\",14 ],[ \"in-tr\",15 ],[ \"in-3464\",16 ],[ \"in-dl\",17 ],[ \"in-hr\",18 ],[ \"in-ch\",19 ],[ \"in-hp\",20 ],[ \"in-jk\",21 ],[ \"in-kl\",22 ],[ \"in-ka\",23 ],[ \"in-dn\",24 ],[ \"in-mh\",25 ],[ \"in-as\",26 ],[ \"in-ap\",27 ],[ \"in-ml\",28 ],[ \"in-pb\",29 ],[ \"in-rj\",30 ],[ \"in-up\",31 ],[ \"in-ut\",32 ],[ \"in-jh\",33 ] ] }] };\n", + " var options = { \"chart\": { \"map\": \"countries/in/in-all\",\"renderTo\": \"ebwrltyomis\" },\"title\": { \"text\": \"Highmaps basic demo\" },\"subtitle\": { \"text\": \"Source map: India\" },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"colorAxis\": { \"min\": 0 },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ \"in-py\",0 ],[ \"in-ld\",1 ],[ \"in-wb\",2 ],[ \"in-or\",3 ],[ \"in-br\",4 ],[ \"in-sk\",5 ],[ \"in-ct\",6 ],[ \"in-tn\",7 ],[ \"in-mp\",8 ],[ \"in-2984\",9 ],[ \"in-ga\",10 ],[ \"in-nl\",11 ],[ \"in-mn\",12 ],[ \"in-ar\",13 ],[ \"in-mz\",14 ],[ \"in-tr\",15 ],[ \"in-3464\",16 ],[ \"in-dl\",17 ],[ \"in-hr\",18 ],[ \"in-ch\",19 ],[ \"in-hp\",20 ],[ \"in-jk\",21 ],[ \"in-kl\",22 ],[ \"in-ka\",23 ],[ \"in-dn\",24 ],[ \"in-mh\",25 ],[ \"in-as\",26 ],[ \"in-ap\",27 ],[ \"in-ml\",28 ],[ \"in-pb\",29 ],[ \"in-rj\",30 ],[ \"in-up\",31 ],[ \"in-ut\",32 ],[ \"in-jh\",33 ] ] }] };\n", " \n", - " window.chart_pzkxovyaequ = new Highcharts.Map(options);\n", + " window.chart_ebwrltyomis = new Highcharts.Map(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -898,7 +908,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'countries/in/in-all'\n", " },\n", @@ -929,7 +938,7 @@ " data: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33]\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -967,17 +976,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -987,7 +996,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'countries/in/custom/in-all-andaman-and-nicobar'\n", " },\n", @@ -1018,7 +1026,7 @@ " data: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1057,17 +1065,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1077,7 +1085,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'countries/us/us-all'\n", " },\n", @@ -1163,7 +1170,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1201,17 +1208,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1289,7 +1296,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1327,17 +1334,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1391,7 +1398,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1429,17 +1436,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1480,7 +1487,7 @@ " data: [0, 1, 2, 3, 4, 5, 6]\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1518,17 +1525,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1583,7 +1590,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1621,17 +1628,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -1689,7 +1696,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1727,17 +1734,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 11, @@ -1813,7 +1820,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, @@ -1852,17 +1859,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, @@ -1934,7 +1941,7 @@ " data: data.map {|row| row[1]}\n", " }\n", ")\n", - "map = Daru::View::Plot.new(df, opts)\n", + "map = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "map.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/HighMaps - Dynamic.ipynb b/spec/dummy_iruby/HighMaps - Dynamic.ipynb index fa9965f..3e85ad9 100644 --- a/spec/dummy_iruby/HighMaps - Dynamic.ipynb +++ b/spec/dummy_iruby/HighMaps - Dynamic.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"map\": \"custom/world\",\"renderTo\": \"vqyleodxzrf\" },\"title\": { \"text\": \"Fixed tooltip with HTML\" },\"legend\": { \"title\": { \"text\": \"Population density per km²\" } },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"tooltip\": { \"backgroundColor\": \"none\",\"borderWidth\": 0,\"shadow\": false,\"useHTML\": true,\"padding\": 0,\"pointFormat\": \" {point.name}
{point.value}/km²\",\"positioner\": \"function () {\\n return { x: 0, y: 250 };\\n }\" },\"colorAxis\": { \"min\": 1,\"max\": 1000,\"dataClasses\": [ { \"to\": 5,\"color\": \"#e8f5e9\",\"name\": \"Weak\" },{ \"from\": 5,\"to\": 20,\"color\": \"#81c784\",\"name\": \"Average\" },{ \"from\": 20,\"to\": 200,\"color\": \"#43a047\",\"name\": \"Strong\" },{ \"from\": 200,\"color\": \"#1b5e20\",\"name\": \"Highly Dense\" } ] },\"series\": [{ \"data\": [ { \"code3\": \"ABW\",\"name\": \"Aruba\",\"value\": 583 },{ \"code3\": \"AFG\",\"name\": \"Afghanistan\",\"value\": 54 },{ \"code3\": \"AGO\",\"name\": \"Angola\",\"value\": 24 },{ \"code3\": \"ALB\",\"name\": \"Albania\",\"value\": 105 },{ \"code3\": \"AND\",\"name\": \"Andorra\",\"value\": 164 },{ \"code3\": \"ARB\",\"name\": \"Arab World\",\"value\": 30 },{ \"code3\": \"ARE\",\"name\": \"United Arab Emirates\",\"value\": 112 },{ \"code3\": \"ARG\",\"name\": \"Argentina\",\"value\": 16 },{ \"code3\": \"ARM\",\"name\": \"Armenia\",\"value\": 103 },{ \"code3\": \"ASM\",\"name\": \"American Samoa\",\"value\": 280 },{ \"code3\": \"ATG\",\"name\": \"Antigua and Barbuda\",\"value\": 232 },{ \"code3\": \"AUS\",\"name\": \"Australia\",\"value\": 3 },{ \"code3\": \"AUT\",\"name\": \"Austria\",\"value\": 106 },{ \"code3\": \"AZE\",\"name\": \"Azerbaijan\",\"value\": 119 },{ \"code3\": \"BDI\",\"name\": \"Burundi\",\"value\": 423 },{ \"code3\": \"BEL\",\"name\": \"Belgium\",\"value\": 377 },{ \"code3\": \"BEN\",\"name\": \"Benin\",\"value\": 99 },{ \"code3\": \"BFA\",\"name\": \"Burkina Faso\",\"value\": 70 },{ \"code3\": \"BGD\",\"name\": \"Bangladesh\",\"value\": 1265 },{ \"code3\": \"BGR\",\"name\": \"Bulgaria\",\"value\": 65 },{ \"code3\": \"BHR\",\"name\": \"Bahrain\",\"value\": 1936 },{ \"code3\": \"BHS\",\"name\": \"Bahamas, The\",\"value\": 39 },{ \"code3\": \"BIH\",\"name\": \"Bosnia and Herzegovina\",\"value\": 68 },{ \"code3\": \"BLR\",\"name\": \"Belarus\",\"value\": 47 },{ \"code3\": \"BLZ\",\"name\": \"Belize\",\"value\": 16 },{ \"code3\": \"BMU\",\"name\": \"Bermuda\",\"value\": 1307 },{ \"code3\": \"BOL\",\"name\": \"Bolivia\",\"value\": 10 },{ \"code3\": \"BRA\",\"name\": \"Brazil\",\"value\": 25 },{ \"code3\": \"BRB\",\"name\": \"Barbados\",\"value\": 665 },{ \"code3\": \"BRN\",\"name\": \"Brunei Darussalam\",\"value\": 81 },{ \"code3\": \"BTN\",\"name\": \"Bhutan\",\"value\": 21 },{ \"code3\": \"BWA\",\"name\": \"Botswana\",\"value\": 4 },{ \"code3\": \"CAF\",\"name\": \"Central African Republic\",\"value\": 7 },{ \"code3\": \"CAN\",\"name\": \"Canada\",\"value\": 4 },{ \"code3\": \"CEB\",\"name\": \"Central Europe and the Baltics\",\"value\": 93 },{ \"code3\": \"CHE\",\"name\": \"Switzerland\",\"value\": 214 },{ \"code3\": \"CHI\",\"name\": \"Channel Islands\",\"value\": 868 },{ \"code3\": \"CHL\",\"name\": \"Chile\",\"value\": 24 },{ \"code3\": \"CHN\",\"name\": \"China\",\"value\": 147 },{ \"code3\": \"CIV\",\"name\": \"Cote d'Ivoire\",\"value\": 76 },{ \"code3\": \"CMR\",\"name\": \"Cameroon\",\"value\": 51 },{ \"code3\": \"COD\",\"name\": \"Congo, Dem. Rep.\",\"value\": 36 },{ \"code3\": \"COG\",\"name\": \"Congo, Rep.\",\"value\": 15 },{ \"code3\": \"COL\",\"name\": \"Colombia\",\"value\": 44 },{ \"code3\": \"COM\",\"name\": \"Comoros\",\"value\": 437 },{ \"code3\": \"CPV\",\"name\": \"Cabo Verde\",\"value\": 135 },{ \"code3\": \"CRI\",\"name\": \"Costa Rica\",\"value\": 96 },{ \"code3\": \"CSS\",\"name\": \"Caribbean small states\",\"value\": 18 },{ \"code3\": \"CUB\",\"name\": \"Cuba\",\"value\": 110 },{ \"code3\": \"CUW\",\"name\": \"Curacao\",\"value\": 363 },{ \"code3\": \"CYM\",\"name\": \"Cayman Islands\",\"value\": 258 },{ \"code3\": \"CYP\",\"name\": \"Cyprus\",\"value\": 128 },{ \"code3\": \"CZE\",\"name\": \"Czech Republic\",\"value\": 137 },{ \"code3\": \"DEU\",\"name\": \"Germany\",\"value\": 237 },{ \"code3\": \"DJI\",\"name\": \"Djibouti\",\"value\": 41 },{ \"code3\": \"DMA\",\"name\": \"Dominica\",\"value\": 99 },{ \"code3\": \"DNK\",\"name\": \"Denmark\",\"value\": 136 },{ \"code3\": \"DOM\",\"name\": \"Dominican Republic\",\"value\": 223 },{ \"code3\": \"DZA\",\"name\": \"Algeria\",\"value\": 17 },{ \"code3\": \"EAP\",\"name\": \"East Asia & Pacific (excluding high income)\",\"value\": 130 },{ \"code3\": \"EAR\",\"name\": \"Early-demographic dividend\",\"value\": 97 },{ \"code3\": \"EAS\",\"name\": \"East Asia & Pacific\",\"value\": 95 },{ \"code3\": \"ECA\",\"name\": \"Europe & Central Asia (excluding high income)\",\"value\": 18 },{ \"code3\": \"ECS\",\"name\": \"Europe & Central Asia\",\"value\": 33 },{ \"code3\": \"ECU\",\"name\": \"Ecuador\",\"value\": 67 },{ \"code3\": \"EGY\",\"name\": \"Egypt, Arab Rep.\",\"value\": 98 },{ \"code3\": \"EMU\",\"name\": \"Euro area\",\"value\": 127 },{ \"code3\": \"ESP\",\"name\": \"Spain\",\"value\": 93 },{ \"code3\": \"EST\",\"name\": \"Estonia\",\"value\": 31 },{ \"code3\": \"ETH\",\"name\": \"Ethiopia\",\"value\": 105 },{ \"code3\": \"EUU\",\"name\": \"European Union\",\"value\": 121 },{ \"code3\": \"FCS\",\"name\": \"Fragile and conflict affected situations\",\"value\": 34 },{ \"code3\": \"FIN\",\"name\": \"Finland\",\"value\": 18 },{ \"code3\": \"FJI\",\"name\": \"Fiji\",\"value\": 50 },{ \"code3\": \"FRA\",\"name\": \"France\",\"value\": 123 },{ \"code3\": \"FRO\",\"name\": \"Faroe Islands\",\"value\": 35 },{ \"code3\": \"FSM\",\"name\": \"Micronesia, Fed. Sts.\",\"value\": 151 },{ \"code3\": \"GAB\",\"name\": \"Gabon\",\"value\": 8 },{ \"code3\": \"GBR\",\"name\": \"United Kingdom\",\"value\": 273 },{ \"code3\": \"GEO\",\"name\": \"Georgia\",\"value\": 53 },{ \"code3\": \"GHA\",\"name\": \"Ghana\",\"value\": 127 },{ \"code3\": \"GIB\",\"name\": \"Gibraltar\",\"value\": 3500 },{ \"code3\": \"GIN\",\"name\": \"Guinea\",\"value\": 52 },{ \"code3\": \"GMB\",\"name\": \"Gambia, The\",\"value\": 208 },{ \"code3\": \"GNB\",\"name\": \"Guinea-Bissau\",\"value\": 66 },{ \"code3\": \"GNQ\",\"name\": \"Equatorial Guinea\",\"value\": 45 },{ \"code3\": \"GRC\",\"name\": \"Greece\",\"value\": 83 },{ \"code3\": \"GRD\",\"name\": \"Grenada\",\"value\": 318 },{ \"code3\": \"GRL\",\"name\": \"Greenland\",\"value\": 1 },{ \"code3\": \"GTM\",\"name\": \"Guatemala\",\"value\": 158 },{ \"code3\": \"GUM\",\"name\": \"Guam\",\"value\": 304 },{ \"code3\": \"GUY\",\"name\": \"Guyana\",\"value\": 4 },{ \"code3\": \"HIC\",\"name\": \"High income\",\"value\": 34 },{ \"code3\": \"HKG\",\"name\": \"Hong Kong SAR, China\",\"value\": 7053 },{ \"code3\": \"HND\",\"name\": \"Honduras\",\"value\": 83 },{ \"code3\": \"HPC\",\"name\": \"Heavily indebted poor countries (HIPC)\",\"value\": 39 },{ \"code3\": \"HRV\",\"name\": \"Croatia\",\"value\": 74 },{ \"code3\": \"HTI\",\"name\": \"Haiti\",\"value\": 398 },{ \"code3\": \"HUN\",\"name\": \"Hungary\",\"value\": 108 },{ \"code3\": \"IBD\",\"name\": \"IBRD only\",\"value\": 68 },{ \"code3\": \"IBT\",\"name\": \"IDA & IBRD total\",\"value\": 66 },{ \"code3\": \"IDA\",\"name\": \"IDA total\",\"value\": 61 },{ \"code3\": \"IDB\",\"name\": \"IDA blend\",\"value\": 90 },{ \"code3\": \"IDN\",\"name\": \"Indonesia\",\"value\": 146 },{ \"code3\": \"IDX\",\"name\": \"IDA only\",\"value\": 53 },{ \"code3\": \"IMN\",\"name\": \"Isle of Man\",\"value\": 147 },{ \"code3\": \"IND\",\"name\": \"India\",\"value\": 450 },{ \"code3\": \"IRL\",\"name\": \"Ireland\",\"value\": 70 },{ \"code3\": \"IRN\",\"name\": \"Iran, Islamic Rep.\",\"value\": 50 },{ \"code3\": \"IRQ\",\"name\": \"Iraq\",\"value\": 88 },{ \"code3\": \"ISL\",\"name\": \"Iceland\",\"value\": 3 },{ \"code3\": \"ISR\",\"name\": \"Israel\",\"value\": 401 },{ \"code3\": \"ITA\",\"name\": \"Italy\",\"value\": 206 },{ \"code3\": \"JAM\",\"name\": \"Jamaica\",\"value\": 267 },{ \"code3\": \"JOR\",\"name\": \"Jordan\",\"value\": 109 },{ \"code3\": \"JPN\",\"name\": \"Japan\",\"value\": 347 },{ \"code3\": \"KAZ\",\"name\": \"Kazakhstan\",\"value\": 7 },{ \"code3\": \"KEN\",\"name\": \"Kenya\",\"value\": 87 },{ \"code3\": \"KGZ\",\"name\": \"Kyrgyz Republic\",\"value\": 32 },{ \"code3\": \"KHM\",\"name\": \"Cambodia\",\"value\": 91 },{ \"code3\": \"KIR\",\"name\": \"Kiribati\",\"value\": 143 },{ \"code3\": \"KNA\",\"name\": \"St. Kitts and Nevis\",\"value\": 212 },{ \"code3\": \"KOR\",\"name\": \"Korea, Rep.\",\"value\": 528 },{ \"code3\": \"KWT\",\"name\": \"Kuwait\",\"value\": 232 },{ \"code3\": \"LAC\",\"name\": \"Latin America & Caribbean (excluding high income)\",\"value\": 32 },{ \"code3\": \"LAO\",\"name\": \"Lao PDR\",\"value\": 30 },{ \"code3\": \"LBN\",\"name\": \"Lebanon\",\"value\": 595 },{ \"code3\": \"LBR\",\"name\": \"Liberia\",\"value\": 49 },{ \"code3\": \"LBY\",\"name\": \"Libya\",\"value\": 4 },{ \"code3\": \"LCA\",\"name\": \"St. Lucia\",\"value\": 293 },{ \"code3\": \"LCN\",\"name\": \"Latin America & Caribbean\",\"value\": 32 },{ \"code3\": \"LDC\",\"name\": \"Least developed countries: UN classification\",\"value\": 50 },{ \"code3\": \"LIC\",\"name\": \"Low income\",\"value\": 51 },{ \"code3\": \"LIE\",\"name\": \"Liechtenstein\",\"value\": 238 },{ \"code3\": \"LKA\",\"name\": \"Sri Lanka\",\"value\": 340 },{ \"code3\": \"LMC\",\"name\": \"Lower middle income\",\"value\": 132 },{ \"code3\": \"LMY\",\"name\": \"Low & middle income\",\"value\": 67 },{ \"code3\": \"LSO\",\"name\": \"Lesotho\",\"value\": 74 },{ \"code3\": \"LTE\",\"name\": \"Late-demographic dividend\",\"value\": 51 },{ \"code3\": \"LTU\",\"name\": \"Lithuania\",\"value\": 46 },{ \"code3\": \"LUX\",\"name\": \"Luxembourg\",\"value\": 228 },{ \"code3\": \"LVA\",\"name\": \"Latvia\",\"value\": 31 },{ \"code3\": \"MAC\",\"name\": \"Macao SAR, China\",\"value\": 20767 },{ \"code3\": \"MAF\",\"name\": \"St. Martin (French part)\",\"value\": 592 },{ \"code3\": \"MAR\",\"name\": \"Morocco\",\"value\": 80 },{ \"code3\": \"MCO\",\"name\": \"Monaco\",\"value\": 19500 },{ \"code3\": \"MDA\",\"name\": \"Moldova\",\"value\": 108 },{ \"code3\": \"MDG\",\"name\": \"Madagascar\",\"value\": 44 },{ \"code3\": \"MDV\",\"name\": \"Maldives\",\"value\": 1410 },{ \"code3\": \"MEA\",\"name\": \"Middle East & North Africa\",\"value\": 40 },{ \"code3\": \"MEX\",\"name\": \"Mexico\",\"value\": 66 },{ \"code3\": \"MHL\",\"name\": \"Marshall Islands\",\"value\": 294 },{ \"code3\": \"MIC\",\"name\": \"Middle income\",\"value\": 69 },{ \"code3\": \"MKD\",\"name\": \"Macedonia, FYR\",\"value\": 83 },{ \"code3\": \"MLI\",\"name\": \"Mali\",\"value\": 15 },{ \"code3\": \"MLT\",\"name\": \"Malta\",\"value\": 1372 },{ \"code3\": \"MMR\",\"name\": \"Myanmar\",\"value\": 82 },{ \"code3\": \"MNA\",\"name\": \"Middle East & North Africa (excluding high income)\",\"value\": 44 },{ \"code3\": \"MNE\",\"name\": \"Montenegro\",\"value\": 46 },{ \"code3\": \"MNG\",\"name\": \"Mongolia\",\"value\": 2 },{ \"code3\": \"MNP\",\"name\": \"Northern Mariana Islands\",\"value\": 120 },{ \"code3\": \"MOZ\",\"name\": \"Mozambique\",\"value\": 38 },{ \"code3\": \"MRT\",\"name\": \"Mauritania\",\"value\": 4 },{ \"code3\": \"MUS\",\"name\": \"Mauritius\",\"value\": 624 },{ \"code3\": \"MWI\",\"name\": \"Malawi\",\"value\": 198 },{ \"code3\": \"MYS\",\"name\": \"Malaysia\",\"value\": 96 },{ \"code3\": \"NAC\",\"name\": \"North America\",\"value\": 20 },{ \"code3\": \"NAM\",\"name\": \"Namibia\",\"value\": 3 },{ \"code3\": \"NCL\",\"name\": \"New Caledonia\",\"value\": 15 },{ \"code3\": \"NER\",\"name\": \"Niger\",\"value\": 17 },{ \"code3\": \"NGA\",\"name\": \"Nigeria\",\"value\": 210 },{ \"code3\": \"NIC\",\"name\": \"Nicaragua\",\"value\": 52 },{ \"code3\": \"NLD\",\"name\": \"Netherlands\",\"value\": 507 },{ \"code3\": \"NOR\",\"name\": \"Norway\",\"value\": 14 },{ \"code3\": \"NPL\",\"name\": \"Nepal\",\"value\": 204 },{ \"code3\": \"NRU\",\"name\": \"Nauru\",\"value\": 650 },{ \"code3\": \"NZL\",\"name\": \"New Zealand\",\"value\": 18 },{ \"code3\": \"OED\",\"name\": \"OECD members\",\"value\": 38 },{ \"code3\": \"OMN\",\"name\": \"Oman\",\"value\": 15 },{ \"code3\": \"OSS\",\"name\": \"Other small states\",\"value\": 15 },{ \"code3\": \"PAK\",\"name\": \"Pakistan\",\"value\": 256 },{ \"code3\": \"PAN\",\"name\": \"Panama\",\"value\": 55 },{ \"code3\": \"PER\",\"name\": \"Peru\",\"value\": 25 },{ \"code3\": \"PHL\",\"name\": \"Philippines\",\"value\": 352 },{ \"code3\": \"PLW\",\"name\": \"Palau\",\"value\": 48 },{ \"code3\": \"PNG\",\"name\": \"Papua New Guinea\",\"value\": 18 },{ \"code3\": \"POL\",\"name\": \"Poland\",\"value\": 124 },{ \"code3\": \"PRE\",\"name\": \"Pre-demographic dividend\",\"value\": 45 },{ \"code3\": \"PRI\",\"name\": \"Puerto Rico\",\"value\": 384 },{ \"code3\": \"PRK\",\"name\": \"Korea, Dem. People’s Rep.\",\"value\": 212 },{ \"code3\": \"PRT\",\"name\": \"Portugal\",\"value\": 112 },{ \"code3\": \"PRY\",\"name\": \"Paraguay\",\"value\": 17 },{ \"code3\": \"PSE\",\"name\": \"West Bank and Gaza\",\"value\": 776 },{ \"code3\": \"PSS\",\"name\": \"Pacific island small states\",\"value\": 38 },{ \"code3\": \"PST\",\"name\": \"Post-demographic dividend\",\"value\": 35 },{ \"code3\": \"PYF\",\"name\": \"French Polynesia\",\"value\": 77 },{ \"code3\": \"QAT\",\"name\": \"Qatar\",\"value\": 227 },{ \"code3\": \"ROU\",\"name\": \"Romania\",\"value\": 85 },{ \"code3\": \"RUS\",\"name\": \"Russian Federation\",\"value\": 9 },{ \"code3\": \"RWA\",\"name\": \"Rwanda\",\"value\": 495 },{ \"code3\": \"SAS\",\"name\": \"South Asia\",\"value\": 375 },{ \"code3\": \"SAU\",\"name\": \"Saudi Arabia\",\"value\": 15 },{ \"code3\": \"SDN\",\"name\": \"Sudan\",\"value\": 17 },{ \"code3\": \"SEN\",\"name\": \"Senegal\",\"value\": 82 },{ \"code3\": \"SGP\",\"name\": \"Singapore\",\"value\": 8023 },{ \"code3\": \"SLB\",\"name\": \"Solomon Islands\",\"value\": 22 },{ \"code3\": \"SLE\",\"name\": \"Sierra Leone\",\"value\": 105 },{ \"code3\": \"SLV\",\"name\": \"El Salvador\",\"value\": 308 },{ \"code3\": \"SMR\",\"name\": \"San Marino\",\"value\": 550 },{ \"code3\": \"SOM\",\"name\": \"Somalia\",\"value\": 24 },{ \"code3\": \"SRB\",\"name\": \"Serbia\",\"value\": 80 },{ \"code3\": \"SSA\",\"name\": \"Sub-Saharan Africa (excluding high income)\",\"value\": 45 },{ \"code3\": \"SSF\",\"name\": \"Sub-Saharan Africa\",\"value\": 45 },{ \"code3\": \"SST\",\"name\": \"Small states\",\"value\": 16 },{ \"code3\": \"STP\",\"name\": \"Sao Tome and Principe\",\"value\": 213 },{ \"code3\": \"SUR\",\"name\": \"Suriname\",\"value\": 4 },{ \"code3\": \"SVK\",\"name\": \"Slovak Republic\",\"value\": 113 },{ \"code3\": \"SVN\",\"name\": \"Slovenia\",\"value\": 103 },{ \"code3\": \"SWE\",\"name\": \"Sweden\",\"value\": 24 },{ \"code3\": \"SWZ\",\"name\": \"Swaziland\",\"value\": 79 },{ \"code3\": \"SXM\",\"name\": \"Sint Maarten (Dutch part)\",\"value\": 1177 },{ \"code3\": \"SYC\",\"name\": \"Seychelles\",\"value\": 207 },{ \"code3\": \"SYR\",\"name\": \"Syrian Arab Republic\",\"value\": 99 },{ \"code3\": \"TCA\",\"name\": \"Turks and Caicos Islands\",\"value\": 37 },{ \"code3\": \"TCD\",\"name\": \"Chad\",\"value\": 12 },{ \"code3\": \"TEA\",\"name\": \"East Asia & Pacific (IDA & IBRD countries)\",\"value\": 129 },{ \"code3\": \"TEC\",\"name\": \"Europe & Central Asia (IDA & IBRD countries)\",\"value\": 20 },{ \"code3\": \"TGO\",\"name\": \"Togo\",\"value\": 143 },{ \"code3\": \"THA\",\"name\": \"Thailand\",\"value\": 135 },{ \"code3\": \"TJK\",\"name\": \"Tajikistan\",\"value\": 64 },{ \"code3\": \"TKM\",\"name\": \"Turkmenistan\",\"value\": 12 },{ \"code3\": \"TLA\",\"name\": \"Latin America & the Caribbean (IDA & IBRD countries)\",\"value\": 32 },{ \"code3\": \"TLS\",\"name\": \"Timor-Leste\",\"value\": 87 },{ \"code3\": \"TMN\",\"name\": \"Middle East & North Africa (IDA & IBRD countries)\",\"value\": 43 },{ \"code3\": \"TON\",\"name\": \"Tonga\",\"value\": 150 },{ \"code3\": \"TSA\",\"name\": \"South Asia (IDA & IBRD)\",\"value\": 375 },{ \"code3\": \"TSS\",\"name\": \"Sub-Saharan Africa (IDA & IBRD countries)\",\"value\": 45 },{ \"code3\": \"TTO\",\"name\": \"Trinidad and Tobago\",\"value\": 267 },{ \"code3\": \"TUN\",\"name\": \"Tunisia\",\"value\": 74 },{ \"code3\": \"TUR\",\"name\": \"Turkey\",\"value\": 105 },{ \"code3\": \"TUV\",\"name\": \"Tuvalu\",\"value\": 367 },{ \"code3\": \"TZA\",\"name\": \"Tanzania\",\"value\": 65 },{ \"code3\": \"UGA\",\"name\": \"Uganda\",\"value\": 214 },{ \"code3\": \"UKR\",\"name\": \"Ukraine\",\"value\": 77 },{ \"code3\": \"UMC\",\"name\": \"Upper middle income\",\"value\": 45 },{ \"code3\": \"URY\",\"name\": \"Uruguay\",\"value\": 20 },{ \"code3\": \"USA\",\"name\": \"United States\",\"value\": 36 },{ \"code3\": \"UZB\",\"name\": \"Uzbekistan\",\"value\": 76 },{ \"code3\": \"VCT\",\"name\": \"St. Vincent and the Grenadines\",\"value\": 282 },{ \"code3\": \"VEN\",\"name\": \"Venezuela, RB\",\"value\": 36 },{ \"code3\": \"VGB\",\"name\": \"British Virgin Islands\",\"value\": 207 },{ \"code3\": \"VIR\",\"name\": \"Virgin Islands (U.S.)\",\"value\": 294 },{ \"code3\": \"VNM\",\"name\": \"Vietnam\",\"value\": 302 },{ \"code3\": \"VUT\",\"name\": \"Vanuatu\",\"value\": 23 },{ \"code3\": \"WLD\",\"name\": \"World\",\"value\": 58 },{ \"code3\": \"WSM\",\"name\": \"Samoa\",\"value\": 69 },{ \"code3\": \"XKX\",\"name\": \"Kosovo\",\"value\": 167 },{ \"code3\": \"YEM\",\"name\": \"Yemen, Rep.\",\"value\": 54 },{ \"code3\": \"ZAF\",\"name\": \"South Africa\",\"value\": 47 },{ \"code3\": \"ZMB\",\"name\": \"Zambia\",\"value\": 23 },{ \"code3\": \"ZWE\",\"name\": \"Zimbabwe\",\"value\": 43 } ],\"joinBy\": [ \"iso-a3\",\"code3\" ],\"name\": \"Population density\",\"states\": { \"hover\": { \"color\": \"#a4edba\" } } }] };\n", + " var options = { \"chart\": { \"map\": \"custom/world\",\"renderTo\": \"priynozdjme\" },\"title\": { \"text\": \"Fixed tooltip with HTML\" },\"legend\": { \"title\": { \"text\": \"Population density per km²\" } },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"tooltip\": { \"backgroundColor\": \"none\",\"borderWidth\": 0,\"shadow\": false,\"useHTML\": true,\"padding\": 0,\"pointFormat\": \" {point.name}
{point.value}/km²\",\"positioner\": \"function () {\\n return { x: 0, y: 250 };\\n }\" },\"colorAxis\": { \"min\": 1,\"max\": 1000,\"dataClasses\": [ { \"to\": 5,\"color\": \"#e8f5e9\",\"name\": \"Weak\" },{ \"from\": 5,\"to\": 20,\"color\": \"#81c784\",\"name\": \"Average\" },{ \"from\": 20,\"to\": 200,\"color\": \"#43a047\",\"name\": \"Strong\" },{ \"from\": 200,\"color\": \"#1b5e20\",\"name\": \"Highly Dense\" } ] },\"series\": [{ \"data\": [ { \"code3\": \"ABW\",\"name\": \"Aruba\",\"value\": 583 },{ \"code3\": \"AFG\",\"name\": \"Afghanistan\",\"value\": 54 },{ \"code3\": \"AGO\",\"name\": \"Angola\",\"value\": 24 },{ \"code3\": \"ALB\",\"name\": \"Albania\",\"value\": 105 },{ \"code3\": \"AND\",\"name\": \"Andorra\",\"value\": 164 },{ \"code3\": \"ARB\",\"name\": \"Arab World\",\"value\": 30 },{ \"code3\": \"ARE\",\"name\": \"United Arab Emirates\",\"value\": 112 },{ \"code3\": \"ARG\",\"name\": \"Argentina\",\"value\": 16 },{ \"code3\": \"ARM\",\"name\": \"Armenia\",\"value\": 103 },{ \"code3\": \"ASM\",\"name\": \"American Samoa\",\"value\": 280 },{ \"code3\": \"ATG\",\"name\": \"Antigua and Barbuda\",\"value\": 232 },{ \"code3\": \"AUS\",\"name\": \"Australia\",\"value\": 3 },{ \"code3\": \"AUT\",\"name\": \"Austria\",\"value\": 106 },{ \"code3\": \"AZE\",\"name\": \"Azerbaijan\",\"value\": 119 },{ \"code3\": \"BDI\",\"name\": \"Burundi\",\"value\": 423 },{ \"code3\": \"BEL\",\"name\": \"Belgium\",\"value\": 377 },{ \"code3\": \"BEN\",\"name\": \"Benin\",\"value\": 99 },{ \"code3\": \"BFA\",\"name\": \"Burkina Faso\",\"value\": 70 },{ \"code3\": \"BGD\",\"name\": \"Bangladesh\",\"value\": 1265 },{ \"code3\": \"BGR\",\"name\": \"Bulgaria\",\"value\": 65 },{ \"code3\": \"BHR\",\"name\": \"Bahrain\",\"value\": 1936 },{ \"code3\": \"BHS\",\"name\": \"Bahamas, The\",\"value\": 39 },{ \"code3\": \"BIH\",\"name\": \"Bosnia and Herzegovina\",\"value\": 68 },{ \"code3\": \"BLR\",\"name\": \"Belarus\",\"value\": 47 },{ \"code3\": \"BLZ\",\"name\": \"Belize\",\"value\": 16 },{ \"code3\": \"BMU\",\"name\": \"Bermuda\",\"value\": 1307 },{ \"code3\": \"BOL\",\"name\": \"Bolivia\",\"value\": 10 },{ \"code3\": \"BRA\",\"name\": \"Brazil\",\"value\": 25 },{ \"code3\": \"BRB\",\"name\": \"Barbados\",\"value\": 665 },{ \"code3\": \"BRN\",\"name\": \"Brunei Darussalam\",\"value\": 81 },{ \"code3\": \"BTN\",\"name\": \"Bhutan\",\"value\": 21 },{ \"code3\": \"BWA\",\"name\": \"Botswana\",\"value\": 4 },{ \"code3\": \"CAF\",\"name\": \"Central African Republic\",\"value\": 7 },{ \"code3\": \"CAN\",\"name\": \"Canada\",\"value\": 4 },{ \"code3\": \"CEB\",\"name\": \"Central Europe and the Baltics\",\"value\": 93 },{ \"code3\": \"CHE\",\"name\": \"Switzerland\",\"value\": 214 },{ \"code3\": \"CHI\",\"name\": \"Channel Islands\",\"value\": 868 },{ \"code3\": \"CHL\",\"name\": \"Chile\",\"value\": 24 },{ \"code3\": \"CHN\",\"name\": \"China\",\"value\": 147 },{ \"code3\": \"CIV\",\"name\": \"Cote d'Ivoire\",\"value\": 76 },{ \"code3\": \"CMR\",\"name\": \"Cameroon\",\"value\": 51 },{ \"code3\": \"COD\",\"name\": \"Congo, Dem. Rep.\",\"value\": 36 },{ \"code3\": \"COG\",\"name\": \"Congo, Rep.\",\"value\": 15 },{ \"code3\": \"COL\",\"name\": \"Colombia\",\"value\": 44 },{ \"code3\": \"COM\",\"name\": \"Comoros\",\"value\": 437 },{ \"code3\": \"CPV\",\"name\": \"Cabo Verde\",\"value\": 135 },{ \"code3\": \"CRI\",\"name\": \"Costa Rica\",\"value\": 96 },{ \"code3\": \"CSS\",\"name\": \"Caribbean small states\",\"value\": 18 },{ \"code3\": \"CUB\",\"name\": \"Cuba\",\"value\": 110 },{ \"code3\": \"CUW\",\"name\": \"Curacao\",\"value\": 363 },{ \"code3\": \"CYM\",\"name\": \"Cayman Islands\",\"value\": 258 },{ \"code3\": \"CYP\",\"name\": \"Cyprus\",\"value\": 128 },{ \"code3\": \"CZE\",\"name\": \"Czech Republic\",\"value\": 137 },{ \"code3\": \"DEU\",\"name\": \"Germany\",\"value\": 237 },{ \"code3\": \"DJI\",\"name\": \"Djibouti\",\"value\": 41 },{ \"code3\": \"DMA\",\"name\": \"Dominica\",\"value\": 99 },{ \"code3\": \"DNK\",\"name\": \"Denmark\",\"value\": 136 },{ \"code3\": \"DOM\",\"name\": \"Dominican Republic\",\"value\": 223 },{ \"code3\": \"DZA\",\"name\": \"Algeria\",\"value\": 17 },{ \"code3\": \"EAP\",\"name\": \"East Asia & Pacific (excluding high income)\",\"value\": 130 },{ \"code3\": \"EAR\",\"name\": \"Early-demographic dividend\",\"value\": 97 },{ \"code3\": \"EAS\",\"name\": \"East Asia & Pacific\",\"value\": 95 },{ \"code3\": \"ECA\",\"name\": \"Europe & Central Asia (excluding high income)\",\"value\": 18 },{ \"code3\": \"ECS\",\"name\": \"Europe & Central Asia\",\"value\": 33 },{ \"code3\": \"ECU\",\"name\": \"Ecuador\",\"value\": 67 },{ \"code3\": \"EGY\",\"name\": \"Egypt, Arab Rep.\",\"value\": 98 },{ \"code3\": \"EMU\",\"name\": \"Euro area\",\"value\": 127 },{ \"code3\": \"ESP\",\"name\": \"Spain\",\"value\": 93 },{ \"code3\": \"EST\",\"name\": \"Estonia\",\"value\": 31 },{ \"code3\": \"ETH\",\"name\": \"Ethiopia\",\"value\": 105 },{ \"code3\": \"EUU\",\"name\": \"European Union\",\"value\": 121 },{ \"code3\": \"FCS\",\"name\": \"Fragile and conflict affected situations\",\"value\": 34 },{ \"code3\": \"FIN\",\"name\": \"Finland\",\"value\": 18 },{ \"code3\": \"FJI\",\"name\": \"Fiji\",\"value\": 50 },{ \"code3\": \"FRA\",\"name\": \"France\",\"value\": 123 },{ \"code3\": \"FRO\",\"name\": \"Faroe Islands\",\"value\": 35 },{ \"code3\": \"FSM\",\"name\": \"Micronesia, Fed. Sts.\",\"value\": 151 },{ \"code3\": \"GAB\",\"name\": \"Gabon\",\"value\": 8 },{ \"code3\": \"GBR\",\"name\": \"United Kingdom\",\"value\": 273 },{ \"code3\": \"GEO\",\"name\": \"Georgia\",\"value\": 53 },{ \"code3\": \"GHA\",\"name\": \"Ghana\",\"value\": 127 },{ \"code3\": \"GIB\",\"name\": \"Gibraltar\",\"value\": 3500 },{ \"code3\": \"GIN\",\"name\": \"Guinea\",\"value\": 52 },{ \"code3\": \"GMB\",\"name\": \"Gambia, The\",\"value\": 208 },{ \"code3\": \"GNB\",\"name\": \"Guinea-Bissau\",\"value\": 66 },{ \"code3\": \"GNQ\",\"name\": \"Equatorial Guinea\",\"value\": 45 },{ \"code3\": \"GRC\",\"name\": \"Greece\",\"value\": 83 },{ \"code3\": \"GRD\",\"name\": \"Grenada\",\"value\": 318 },{ \"code3\": \"GRL\",\"name\": \"Greenland\",\"value\": 1 },{ \"code3\": \"GTM\",\"name\": \"Guatemala\",\"value\": 158 },{ \"code3\": \"GUM\",\"name\": \"Guam\",\"value\": 304 },{ \"code3\": \"GUY\",\"name\": \"Guyana\",\"value\": 4 },{ \"code3\": \"HIC\",\"name\": \"High income\",\"value\": 34 },{ \"code3\": \"HKG\",\"name\": \"Hong Kong SAR, China\",\"value\": 7053 },{ \"code3\": \"HND\",\"name\": \"Honduras\",\"value\": 83 },{ \"code3\": \"HPC\",\"name\": \"Heavily indebted poor countries (HIPC)\",\"value\": 39 },{ \"code3\": \"HRV\",\"name\": \"Croatia\",\"value\": 74 },{ \"code3\": \"HTI\",\"name\": \"Haiti\",\"value\": 398 },{ \"code3\": \"HUN\",\"name\": \"Hungary\",\"value\": 108 },{ \"code3\": \"IBD\",\"name\": \"IBRD only\",\"value\": 68 },{ \"code3\": \"IBT\",\"name\": \"IDA & IBRD total\",\"value\": 66 },{ \"code3\": \"IDA\",\"name\": \"IDA total\",\"value\": 61 },{ \"code3\": \"IDB\",\"name\": \"IDA blend\",\"value\": 90 },{ \"code3\": \"IDN\",\"name\": \"Indonesia\",\"value\": 146 },{ \"code3\": \"IDX\",\"name\": \"IDA only\",\"value\": 53 },{ \"code3\": \"IMN\",\"name\": \"Isle of Man\",\"value\": 147 },{ \"code3\": \"IND\",\"name\": \"India\",\"value\": 450 },{ \"code3\": \"IRL\",\"name\": \"Ireland\",\"value\": 70 },{ \"code3\": \"IRN\",\"name\": \"Iran, Islamic Rep.\",\"value\": 50 },{ \"code3\": \"IRQ\",\"name\": \"Iraq\",\"value\": 88 },{ \"code3\": \"ISL\",\"name\": \"Iceland\",\"value\": 3 },{ \"code3\": \"ISR\",\"name\": \"Israel\",\"value\": 401 },{ \"code3\": \"ITA\",\"name\": \"Italy\",\"value\": 206 },{ \"code3\": \"JAM\",\"name\": \"Jamaica\",\"value\": 267 },{ \"code3\": \"JOR\",\"name\": \"Jordan\",\"value\": 109 },{ \"code3\": \"JPN\",\"name\": \"Japan\",\"value\": 347 },{ \"code3\": \"KAZ\",\"name\": \"Kazakhstan\",\"value\": 7 },{ \"code3\": \"KEN\",\"name\": \"Kenya\",\"value\": 87 },{ \"code3\": \"KGZ\",\"name\": \"Kyrgyz Republic\",\"value\": 32 },{ \"code3\": \"KHM\",\"name\": \"Cambodia\",\"value\": 91 },{ \"code3\": \"KIR\",\"name\": \"Kiribati\",\"value\": 143 },{ \"code3\": \"KNA\",\"name\": \"St. Kitts and Nevis\",\"value\": 212 },{ \"code3\": \"KOR\",\"name\": \"Korea, Rep.\",\"value\": 528 },{ \"code3\": \"KWT\",\"name\": \"Kuwait\",\"value\": 232 },{ \"code3\": \"LAC\",\"name\": \"Latin America & Caribbean (excluding high income)\",\"value\": 32 },{ \"code3\": \"LAO\",\"name\": \"Lao PDR\",\"value\": 30 },{ \"code3\": \"LBN\",\"name\": \"Lebanon\",\"value\": 595 },{ \"code3\": \"LBR\",\"name\": \"Liberia\",\"value\": 49 },{ \"code3\": \"LBY\",\"name\": \"Libya\",\"value\": 4 },{ \"code3\": \"LCA\",\"name\": \"St. Lucia\",\"value\": 293 },{ \"code3\": \"LCN\",\"name\": \"Latin America & Caribbean\",\"value\": 32 },{ \"code3\": \"LDC\",\"name\": \"Least developed countries: UN classification\",\"value\": 50 },{ \"code3\": \"LIC\",\"name\": \"Low income\",\"value\": 51 },{ \"code3\": \"LIE\",\"name\": \"Liechtenstein\",\"value\": 238 },{ \"code3\": \"LKA\",\"name\": \"Sri Lanka\",\"value\": 340 },{ \"code3\": \"LMC\",\"name\": \"Lower middle income\",\"value\": 132 },{ \"code3\": \"LMY\",\"name\": \"Low & middle income\",\"value\": 67 },{ \"code3\": \"LSO\",\"name\": \"Lesotho\",\"value\": 74 },{ \"code3\": \"LTE\",\"name\": \"Late-demographic dividend\",\"value\": 51 },{ \"code3\": \"LTU\",\"name\": \"Lithuania\",\"value\": 46 },{ \"code3\": \"LUX\",\"name\": \"Luxembourg\",\"value\": 228 },{ \"code3\": \"LVA\",\"name\": \"Latvia\",\"value\": 31 },{ \"code3\": \"MAC\",\"name\": \"Macao SAR, China\",\"value\": 20767 },{ \"code3\": \"MAF\",\"name\": \"St. Martin (French part)\",\"value\": 592 },{ \"code3\": \"MAR\",\"name\": \"Morocco\",\"value\": 80 },{ \"code3\": \"MCO\",\"name\": \"Monaco\",\"value\": 19500 },{ \"code3\": \"MDA\",\"name\": \"Moldova\",\"value\": 108 },{ \"code3\": \"MDG\",\"name\": \"Madagascar\",\"value\": 44 },{ \"code3\": \"MDV\",\"name\": \"Maldives\",\"value\": 1410 },{ \"code3\": \"MEA\",\"name\": \"Middle East & North Africa\",\"value\": 40 },{ \"code3\": \"MEX\",\"name\": \"Mexico\",\"value\": 66 },{ \"code3\": \"MHL\",\"name\": \"Marshall Islands\",\"value\": 294 },{ \"code3\": \"MIC\",\"name\": \"Middle income\",\"value\": 69 },{ \"code3\": \"MKD\",\"name\": \"Macedonia, FYR\",\"value\": 83 },{ \"code3\": \"MLI\",\"name\": \"Mali\",\"value\": 15 },{ \"code3\": \"MLT\",\"name\": \"Malta\",\"value\": 1372 },{ \"code3\": \"MMR\",\"name\": \"Myanmar\",\"value\": 82 },{ \"code3\": \"MNA\",\"name\": \"Middle East & North Africa (excluding high income)\",\"value\": 44 },{ \"code3\": \"MNE\",\"name\": \"Montenegro\",\"value\": 46 },{ \"code3\": \"MNG\",\"name\": \"Mongolia\",\"value\": 2 },{ \"code3\": \"MNP\",\"name\": \"Northern Mariana Islands\",\"value\": 120 },{ \"code3\": \"MOZ\",\"name\": \"Mozambique\",\"value\": 38 },{ \"code3\": \"MRT\",\"name\": \"Mauritania\",\"value\": 4 },{ \"code3\": \"MUS\",\"name\": \"Mauritius\",\"value\": 624 },{ \"code3\": \"MWI\",\"name\": \"Malawi\",\"value\": 198 },{ \"code3\": \"MYS\",\"name\": \"Malaysia\",\"value\": 96 },{ \"code3\": \"NAC\",\"name\": \"North America\",\"value\": 20 },{ \"code3\": \"NAM\",\"name\": \"Namibia\",\"value\": 3 },{ \"code3\": \"NCL\",\"name\": \"New Caledonia\",\"value\": 15 },{ \"code3\": \"NER\",\"name\": \"Niger\",\"value\": 17 },{ \"code3\": \"NGA\",\"name\": \"Nigeria\",\"value\": 210 },{ \"code3\": \"NIC\",\"name\": \"Nicaragua\",\"value\": 52 },{ \"code3\": \"NLD\",\"name\": \"Netherlands\",\"value\": 507 },{ \"code3\": \"NOR\",\"name\": \"Norway\",\"value\": 14 },{ \"code3\": \"NPL\",\"name\": \"Nepal\",\"value\": 204 },{ \"code3\": \"NRU\",\"name\": \"Nauru\",\"value\": 650 },{ \"code3\": \"NZL\",\"name\": \"New Zealand\",\"value\": 18 },{ \"code3\": \"OED\",\"name\": \"OECD members\",\"value\": 38 },{ \"code3\": \"OMN\",\"name\": \"Oman\",\"value\": 15 },{ \"code3\": \"OSS\",\"name\": \"Other small states\",\"value\": 15 },{ \"code3\": \"PAK\",\"name\": \"Pakistan\",\"value\": 256 },{ \"code3\": \"PAN\",\"name\": \"Panama\",\"value\": 55 },{ \"code3\": \"PER\",\"name\": \"Peru\",\"value\": 25 },{ \"code3\": \"PHL\",\"name\": \"Philippines\",\"value\": 352 },{ \"code3\": \"PLW\",\"name\": \"Palau\",\"value\": 48 },{ \"code3\": \"PNG\",\"name\": \"Papua New Guinea\",\"value\": 18 },{ \"code3\": \"POL\",\"name\": \"Poland\",\"value\": 124 },{ \"code3\": \"PRE\",\"name\": \"Pre-demographic dividend\",\"value\": 45 },{ \"code3\": \"PRI\",\"name\": \"Puerto Rico\",\"value\": 384 },{ \"code3\": \"PRK\",\"name\": \"Korea, Dem. People’s Rep.\",\"value\": 212 },{ \"code3\": \"PRT\",\"name\": \"Portugal\",\"value\": 112 },{ \"code3\": \"PRY\",\"name\": \"Paraguay\",\"value\": 17 },{ \"code3\": \"PSE\",\"name\": \"West Bank and Gaza\",\"value\": 776 },{ \"code3\": \"PSS\",\"name\": \"Pacific island small states\",\"value\": 38 },{ \"code3\": \"PST\",\"name\": \"Post-demographic dividend\",\"value\": 35 },{ \"code3\": \"PYF\",\"name\": \"French Polynesia\",\"value\": 77 },{ \"code3\": \"QAT\",\"name\": \"Qatar\",\"value\": 227 },{ \"code3\": \"ROU\",\"name\": \"Romania\",\"value\": 85 },{ \"code3\": \"RUS\",\"name\": \"Russian Federation\",\"value\": 9 },{ \"code3\": \"RWA\",\"name\": \"Rwanda\",\"value\": 495 },{ \"code3\": \"SAS\",\"name\": \"South Asia\",\"value\": 375 },{ \"code3\": \"SAU\",\"name\": \"Saudi Arabia\",\"value\": 15 },{ \"code3\": \"SDN\",\"name\": \"Sudan\",\"value\": 17 },{ \"code3\": \"SEN\",\"name\": \"Senegal\",\"value\": 82 },{ \"code3\": \"SGP\",\"name\": \"Singapore\",\"value\": 8023 },{ \"code3\": \"SLB\",\"name\": \"Solomon Islands\",\"value\": 22 },{ \"code3\": \"SLE\",\"name\": \"Sierra Leone\",\"value\": 105 },{ \"code3\": \"SLV\",\"name\": \"El Salvador\",\"value\": 308 },{ \"code3\": \"SMR\",\"name\": \"San Marino\",\"value\": 550 },{ \"code3\": \"SOM\",\"name\": \"Somalia\",\"value\": 24 },{ \"code3\": \"SRB\",\"name\": \"Serbia\",\"value\": 80 },{ \"code3\": \"SSA\",\"name\": \"Sub-Saharan Africa (excluding high income)\",\"value\": 45 },{ \"code3\": \"SSF\",\"name\": \"Sub-Saharan Africa\",\"value\": 45 },{ \"code3\": \"SST\",\"name\": \"Small states\",\"value\": 16 },{ \"code3\": \"STP\",\"name\": \"Sao Tome and Principe\",\"value\": 213 },{ \"code3\": \"SUR\",\"name\": \"Suriname\",\"value\": 4 },{ \"code3\": \"SVK\",\"name\": \"Slovak Republic\",\"value\": 113 },{ \"code3\": \"SVN\",\"name\": \"Slovenia\",\"value\": 103 },{ \"code3\": \"SWE\",\"name\": \"Sweden\",\"value\": 24 },{ \"code3\": \"SWZ\",\"name\": \"Swaziland\",\"value\": 79 },{ \"code3\": \"SXM\",\"name\": \"Sint Maarten (Dutch part)\",\"value\": 1177 },{ \"code3\": \"SYC\",\"name\": \"Seychelles\",\"value\": 207 },{ \"code3\": \"SYR\",\"name\": \"Syrian Arab Republic\",\"value\": 99 },{ \"code3\": \"TCA\",\"name\": \"Turks and Caicos Islands\",\"value\": 37 },{ \"code3\": \"TCD\",\"name\": \"Chad\",\"value\": 12 },{ \"code3\": \"TEA\",\"name\": \"East Asia & Pacific (IDA & IBRD countries)\",\"value\": 129 },{ \"code3\": \"TEC\",\"name\": \"Europe & Central Asia (IDA & IBRD countries)\",\"value\": 20 },{ \"code3\": \"TGO\",\"name\": \"Togo\",\"value\": 143 },{ \"code3\": \"THA\",\"name\": \"Thailand\",\"value\": 135 },{ \"code3\": \"TJK\",\"name\": \"Tajikistan\",\"value\": 64 },{ \"code3\": \"TKM\",\"name\": \"Turkmenistan\",\"value\": 12 },{ \"code3\": \"TLA\",\"name\": \"Latin America & the Caribbean (IDA & IBRD countries)\",\"value\": 32 },{ \"code3\": \"TLS\",\"name\": \"Timor-Leste\",\"value\": 87 },{ \"code3\": \"TMN\",\"name\": \"Middle East & North Africa (IDA & IBRD countries)\",\"value\": 43 },{ \"code3\": \"TON\",\"name\": \"Tonga\",\"value\": 150 },{ \"code3\": \"TSA\",\"name\": \"South Asia (IDA & IBRD)\",\"value\": 375 },{ \"code3\": \"TSS\",\"name\": \"Sub-Saharan Africa (IDA & IBRD countries)\",\"value\": 45 },{ \"code3\": \"TTO\",\"name\": \"Trinidad and Tobago\",\"value\": 267 },{ \"code3\": \"TUN\",\"name\": \"Tunisia\",\"value\": 74 },{ \"code3\": \"TUR\",\"name\": \"Turkey\",\"value\": 105 },{ \"code3\": \"TUV\",\"name\": \"Tuvalu\",\"value\": 367 },{ \"code3\": \"TZA\",\"name\": \"Tanzania\",\"value\": 65 },{ \"code3\": \"UGA\",\"name\": \"Uganda\",\"value\": 214 },{ \"code3\": \"UKR\",\"name\": \"Ukraine\",\"value\": 77 },{ \"code3\": \"UMC\",\"name\": \"Upper middle income\",\"value\": 45 },{ \"code3\": \"URY\",\"name\": \"Uruguay\",\"value\": 20 },{ \"code3\": \"USA\",\"name\": \"United States\",\"value\": 36 },{ \"code3\": \"UZB\",\"name\": \"Uzbekistan\",\"value\": 76 },{ \"code3\": \"VCT\",\"name\": \"St. Vincent and the Grenadines\",\"value\": 282 },{ \"code3\": \"VEN\",\"name\": \"Venezuela, RB\",\"value\": 36 },{ \"code3\": \"VGB\",\"name\": \"British Virgin Islands\",\"value\": 207 },{ \"code3\": \"VIR\",\"name\": \"Virgin Islands (U.S.)\",\"value\": 294 },{ \"code3\": \"VNM\",\"name\": \"Vietnam\",\"value\": 302 },{ \"code3\": \"VUT\",\"name\": \"Vanuatu\",\"value\": 23 },{ \"code3\": \"WLD\",\"name\": \"World\",\"value\": 58 },{ \"code3\": \"WSM\",\"name\": \"Samoa\",\"value\": 69 },{ \"code3\": \"XKX\",\"name\": \"Kosovo\",\"value\": 167 },{ \"code3\": \"YEM\",\"name\": \"Yemen, Rep.\",\"value\": 54 },{ \"code3\": \"ZAF\",\"name\": \"South Africa\",\"value\": 47 },{ \"code3\": \"ZMB\",\"name\": \"Zambia\",\"value\": 23 },{ \"code3\": \"ZWE\",\"name\": \"Zimbabwe\",\"value\": 43 } ],\"joinBy\": [ \"iso-a3\",\"code3\" ],\"name\": \"Population density\",\"states\": { \"hover\": { \"color\": \"#a4edba\" } } }] };\n", " \n", - " window.chart_vqyleodxzrf = new Highcharts.Map(options);\n", + " window.chart_priynozdjme = new Highcharts.Map(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -898,10 +908,8 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", - "\n", " chart: {\n", - " map: 'custom/world'\n", + " map: 'custom/world'\n", " },\n", "\n", " title: {\n", @@ -2277,7 +2285,7 @@ " }\n", " }]\n", "\n", - "map_world_fix_tooltip = Daru::View::Plot.new(series_dt, opts)\n", + "map_world_fix_tooltip = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "map_world_fix_tooltip.show_in_iruby" ] }, @@ -2315,17 +2323,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -2335,7 +2343,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'custom/world'\n", " },\n", @@ -3694,7 +3701,7 @@ " }\n", " }]\n", "\n", - "map_zoom_in = Daru::View::Plot.new(series_dt, opts)\n", + "map_zoom_in = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "map_zoom_in.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/HighMaps | General.ipynb b/spec/dummy_iruby/HighMaps | General.ipynb index d89bc82..6f49b6f 100644 --- a/spec/dummy_iruby/HighMaps | General.ipynb +++ b/spec/dummy_iruby/HighMaps | General.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"map\": \"custom/europe\",\"borderWidth\": 1,\"renderTo\": \"sqkfopvgdia\" },\"title\": { \"text\": \"Nordic countries\" },\"subtitle\": { \"text\": \"Demo of drawing all areas in the map, only highlighting partial data\" },\"legend\": { \"enabled\": false },\"series\": [{ \"name\": \"Country\",\"data\": [ [ \"is\",1 ],[ \"no\",1 ],[ \"se\",1 ],[ \"dk\",1 ],[ \"fi\",1 ] ],\"dataLabels\": { \"enabled\": true,\"color\": \"#FFFFFF\",\"formatter\": function () {\n", + " var options = { \"chart\": { \"map\": \"custom/europe\",\"borderWidth\": 1,\"renderTo\": \"spevfowgmnh\" },\"title\": { \"text\": \"Nordic countries\" },\"subtitle\": { \"text\": \"Demo of drawing all areas in the map, only highlighting partial data\" },\"legend\": { \"enabled\": false },\"series\": [{ \"name\": \"Country\",\"data\": [ [ \"is\",1 ],[ \"no\",1 ],[ \"se\",1 ],[ \"dk\",1 ],[ \"fi\",1 ] ],\"dataLabels\": { \"enabled\": true,\"color\": \"#FFFFFF\",\"formatter\": function () {\n", " if (this.point.value) {\n", " return this.point.name;\n", " }\n", " } } }] };\n", " \n", - " window.chart_sqkfopvgdia = new Highcharts.Map(options);\n", + " window.chart_spevfowgmnh = new Highcharts.Map(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -902,7 +912,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'custom/europe',\n", " borderWidth: 1\n", @@ -942,7 +951,7 @@ " }\n", "]\n", "\n", - "highlight = Daru::View::Plot.new(series_dt, opts)\n", + "highlight = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "highlight.show_in_iruby" ] }, @@ -980,17 +989,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1000,7 +1009,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'custom/europe',\n", " borderWidth: 1\n", @@ -1015,7 +1023,7 @@ " data: [1, 1, 1, 1, 1]\n", " }\n", ")\n", - "highlight = Daru::View::Plot.new(df, opts)\n", + "highlight = Daru::View::Plot.new(df, opts, chart_class: 'map')\n", "highlight.show_in_iruby" ] }, @@ -1047,17 +1055,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1067,7 +1075,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " title: {\n", " text: 'Habitat of the Rusty Blackbird'\n", " },\n", @@ -2050,7 +2057,7 @@ " ]\n", "}]\n", "\n", - "area_neg = Daru::View::Plot.new(series_dt, opts)\n", + "area_neg = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "area_neg.show_in_iruby" ] }, @@ -2088,7 +2095,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -2121,7 +2128,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'custom/europe',\n", " spacingBottom: 20\n", @@ -2186,7 +2192,7 @@ " }\n", " ]\n", "\n", - "etz = Daru::View::Plot.new(series_dt, opts)\n", + "etz = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "etz.show_in_iruby" ] }, @@ -2225,17 +2231,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -2245,7 +2251,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " map: 'countries/us/us-all',\n", " borderWidth: 1\n", @@ -2514,7 +2519,7 @@ " }\n", "}]\n", "\n", - "map_us_population = Daru::View::Plot.new(series_dt, opts)\n", + "map_us_population = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "map_us_population.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/HighMaps | Series Types.ipynb b/spec/dummy_iruby/HighMaps | Series Types.ipynb index 0f688fb..3ecbc1e 100644 --- a/spec/dummy_iruby/HighMaps | Series Types.ipynb +++ b/spec/dummy_iruby/HighMaps | Series Types.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"borderWidth\": 1,\"map\": \"custom/world\",\"renderTo\": \"apubdrlevom\" },\"title\": { \"text\": \"World population 2013 by country\" },\"subtitle\": { \"text\": \"Demo of Highcharts map with bubbles\" },\"legend\": { \"enabled\": false },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"series\": [{ \"name\": \"Countries\",\"color\": \"#E0E0E0\",\"enableMouseTracking\": false },{ \"type\": \"mapbubble\",\"name\": \"Population 2016\",\"joinBy\": [ \"iso-a3\",\"code3\" ],\"data\": [ { \"code3\": \"ABW\",\"z\": 105 },{ \"code3\": \"AFG\",\"z\": 35530 },{ \"code3\": \"AGO\",\"z\": 29784 },{ \"code3\": \"ALB\",\"z\": 2879 },{ \"code3\": \"AND\",\"z\": 77 },{ \"code3\": \"ARB\",\"z\": 414481 },{ \"code3\": \"ARE\",\"z\": 9400 },{ \"code3\": \"ARG\",\"z\": 44271 },{ \"code3\": \"ARM\",\"z\": 2930 },{ \"code3\": \"ASM\",\"z\": 56 },{ \"code3\": \"ATG\",\"z\": 102 },{ \"code3\": \"AUS\",\"z\": 24446 },{ \"code3\": \"AUT\",\"z\": 8770 },{ \"code3\": \"AZE\",\"z\": 9868 },{ \"code3\": \"BDI\",\"z\": 10864 },{ \"code3\": \"BEL\",\"z\": 11416 },{ \"code3\": \"BEN\",\"z\": 11176 },{ \"code3\": \"BFA\",\"z\": 19193 },{ \"code3\": \"BGD\",\"z\": 164670 },{ \"code3\": \"BGR\",\"z\": 7075 },{ \"code3\": \"BHR\",\"z\": 1493 },{ \"code3\": \"BHS\",\"z\": 395 },{ \"code3\": \"BIH\",\"z\": 3507 },{ \"code3\": \"BLR\",\"z\": 9480 },{ \"code3\": \"BLZ\",\"z\": 375 },{ \"code3\": \"BMU\",\"z\": 65 },{ \"code3\": \"BOL\",\"z\": 11052 },{ \"code3\": \"BRA\",\"z\": 209288 },{ \"code3\": \"BRB\",\"z\": 286 },{ \"code3\": \"BRN\",\"z\": 429 },{ \"code3\": \"BTN\",\"z\": 808 },{ \"code3\": \"BWA\",\"z\": 2292 },{ \"code3\": \"CAF\",\"z\": 4659 },{ \"code3\": \"CAN\",\"z\": 36613 },{ \"code3\": \"CEB\",\"z\": 102696 },{ \"code3\": \"CHE\",\"z\": 8441 },{ \"code3\": \"CHI\",\"z\": 165 },{ \"code3\": \"CHL\",\"z\": 18055 },{ \"code3\": \"CHN\",\"z\": 1383981 },{ \"code3\": \"CIV\",\"z\": 24295 },{ \"code3\": \"CMR\",\"z\": 24054 },{ \"code3\": \"COD\",\"z\": 81340 },{ \"code3\": \"COG\",\"z\": 5261 },{ \"code3\": \"COL\",\"z\": 49066 },{ \"code3\": \"COM\",\"z\": 814 },{ \"code3\": \"CPV\",\"z\": 546 },{ \"code3\": \"CRI\",\"z\": 4906 },{ \"code3\": \"CSS\",\"z\": 7284 },{ \"code3\": \"CUB\",\"z\": 11485 },{ \"code3\": \"CUW\",\"z\": 161 },{ \"code3\": \"CYM\",\"z\": 62 },{ \"code3\": \"CYP\",\"z\": 1180 },{ \"code3\": \"CZE\",\"z\": 10571 },{ \"code3\": \"DEU\",\"z\": 82581 },{ \"code3\": \"DJI\",\"z\": 957 },{ \"code3\": \"DMA\",\"z\": 74 },{ \"code3\": \"DNK\",\"z\": 5751 },{ \"code3\": \"DOM\",\"z\": 10767 },{ \"code3\": \"DZA\",\"z\": 41318 },{ \"code3\": \"EAP\",\"z\": 2064004 },{ \"code3\": \"EAR\",\"z\": 3213167 },{ \"code3\": \"EAS\",\"z\": 2309732 },{ \"code3\": \"ECA\",\"z\": 419152 },{ \"code3\": \"ECS\",\"z\": 914474 },{ \"code3\": \"ECU\",\"z\": 16625 },{ \"code3\": \"EGY\",\"z\": 97553 },{ \"code3\": \"EMU\",\"z\": 341175 },{ \"code3\": \"ERI\",\"z\": 4475 },{ \"code3\": \"ESP\",\"z\": 46460 },{ \"code3\": \"EST\",\"z\": 1313 },{ \"code3\": \"ETH\",\"z\": 104957 },{ \"code3\": \"EUU\",\"z\": 511990 },{ \"code3\": \"FCS\",\"z\": 517571 },{ \"code3\": \"FIN\",\"z\": 5510 },{ \"code3\": \"FJI\",\"z\": 906 },{ \"code3\": \"FRA\",\"z\": 67143 },{ \"code3\": \"FRO\",\"z\": 49 },{ \"code3\": \"FSM\",\"z\": 106 },{ \"code3\": \"GAB\",\"z\": 2025 },{ \"code3\": \"GBR\",\"z\": 66013 },{ \"code3\": \"GEO\",\"z\": 3715 },{ \"code3\": \"GHA\",\"z\": 28834 },{ \"code3\": \"GIB\",\"z\": 35 },{ \"code3\": \"GIN\",\"z\": 12717 },{ \"code3\": \"GMB\",\"z\": 2101 },{ \"code3\": \"GNB\",\"z\": 1861 },{ \"code3\": \"GNQ\",\"z\": 1268 },{ \"code3\": \"GRC\",\"z\": 10726 },{ \"code3\": \"GRD\",\"z\": 108 },{ \"code3\": \"GRL\",\"z\": 56 },{ \"code3\": \"GTM\",\"z\": 16914 },{ \"code3\": \"GUM\",\"z\": 164 },{ \"code3\": \"GUY\",\"z\": 778 },{ \"code3\": \"HIC\",\"z\": 1195272 },{ \"code3\": \"HKG\",\"z\": 7406 },{ \"code3\": \"HND\",\"z\": 9265 },{ \"code3\": \"HPC\",\"z\": 765113 },{ \"code3\": \"HRV\",\"z\": 4155 },{ \"code3\": \"HTI\",\"z\": 10981 },{ \"code3\": \"HUN\",\"z\": 9785 },{ \"code3\": \"IBD\",\"z\": 4738332 },{ \"code3\": \"IBT\",\"z\": 6348082 },{ \"code3\": \"IDA\",\"z\": 1609750 },{ \"code3\": \"IDB\",\"z\": 532893 },{ \"code3\": \"IDN\",\"z\": 263991 },{ \"code3\": \"IDX\",\"z\": 1076857 },{ \"code3\": \"IMN\",\"z\": 84 },{ \"code3\": \"IND\",\"z\": 1339180 },{ \"code3\": \"INX\",\"z\": 0 },{ \"code3\": \"IRL\",\"z\": 4815 },{ \"code3\": \"IRN\",\"z\": 81163 },{ \"code3\": \"IRQ\",\"z\": 38275 },{ \"code3\": \"ISL\",\"z\": 337 },{ \"code3\": \"ISR\",\"z\": 8682 },{ \"code3\": \"ITA\",\"z\": 60570 },{ \"code3\": \"JAM\",\"z\": 2890 },{ \"code3\": \"JOR\",\"z\": 9702 },{ \"code3\": \"JPN\",\"z\": 126641 },{ \"code3\": \"KAZ\",\"z\": 17996 },{ \"code3\": \"KEN\",\"z\": 49700 },{ \"code3\": \"KGZ\",\"z\": 6173 },{ \"code3\": \"KHM\",\"z\": 16005 },{ \"code3\": \"KIR\",\"z\": 116 },{ \"code3\": \"KNA\",\"z\": 55 },{ \"code3\": \"KOR\",\"z\": 51439 },{ \"code3\": \"KWT\",\"z\": 4137 },{ \"code3\": \"LAC\",\"z\": 616508 },{ \"code3\": \"LAO\",\"z\": 6858 },{ \"code3\": \"LBN\",\"z\": 6082 },{ \"code3\": \"LBR\",\"z\": 4732 },{ \"code3\": \"LBY\",\"z\": 6375 },{ \"code3\": \"LCA\",\"z\": 179 },{ \"code3\": \"LCN\",\"z\": 644134 },{ \"code3\": \"LDC\",\"z\": 1002483 },{ \"code3\": \"LIC\",\"z\": 677007 },{ \"code3\": \"LIE\",\"z\": 38 },{ \"code3\": \"LKA\",\"z\": 21302 },{ \"code3\": \"LMC\",\"z\": 3055354 },{ \"code3\": \"LMY\",\"z\": 6328725 },{ \"code3\": \"LSO\",\"z\": 2233 },{ \"code3\": \"LTE\",\"z\": 2273459 },{ \"code3\": \"LTU\",\"z\": 2856 },{ \"code3\": \"LUX\",\"z\": 590 },{ \"code3\": \"LVA\",\"z\": 1950 },{ \"code3\": \"MAC\",\"z\": 623 },{ \"code3\": \"MAF\",\"z\": 32 },{ \"code3\": \"MAR\",\"z\": 35740 },{ \"code3\": \"MCO\",\"z\": 39 },{ \"code3\": \"MDA\",\"z\": 3544 },{ \"code3\": \"MDG\",\"z\": 25571 },{ \"code3\": \"MDV\",\"z\": 423 },{ \"code3\": \"MEA\",\"z\": 444255 },{ \"code3\": \"MEX\",\"z\": 129163 },{ \"code3\": \"MHL\",\"z\": 53 },{ \"code3\": \"MIC\",\"z\": 5651718 },{ \"code3\": \"MKD\",\"z\": 2083 },{ \"code3\": \"MLI\",\"z\": 18542 },{ \"code3\": \"MLT\",\"z\": 439 },{ \"code3\": \"MMR\",\"z\": 53371 },{ \"code3\": \"MNA\",\"z\": 379891 },{ \"code3\": \"MNE\",\"z\": 623 },{ \"code3\": \"MNG\",\"z\": 3076 },{ \"code3\": \"MNP\",\"z\": 55 },{ \"code3\": \"MOZ\",\"z\": 29669 },{ \"code3\": \"MRT\",\"z\": 4420 },{ \"code3\": \"MUS\",\"z\": 1267 },{ \"code3\": \"MWI\",\"z\": 18622 },{ \"code3\": \"MYS\",\"z\": 31624 },{ \"code3\": \"NAC\",\"z\": 362137 },{ \"code3\": \"NAM\",\"z\": 2534 },{ \"code3\": \"NCL\",\"z\": 281 },{ \"code3\": \"NER\",\"z\": 21477 },{ \"code3\": \"NGA\",\"z\": 190886 },{ \"code3\": \"NIC\",\"z\": 6218 },{ \"code3\": \"NLD\",\"z\": 17073 },{ \"code3\": \"NOR\",\"z\": 5289 },{ \"code3\": \"NPL\",\"z\": 29305 },{ \"code3\": \"NRU\",\"z\": 13 },{ \"code3\": \"NZL\",\"z\": 4736 },{ \"code3\": \"OED\",\"z\": 1296810 },{ \"code3\": \"OMN\",\"z\": 4636 },{ \"code3\": \"OSS\",\"z\": 30577 },{ \"code3\": \"PAK\",\"z\": 197016 },{ \"code3\": \"PAN\",\"z\": 4099 },{ \"code3\": \"PER\",\"z\": 32165 },{ \"code3\": \"PHL\",\"z\": 104918 },{ \"code3\": \"PLW\",\"z\": 22 },{ \"code3\": \"PNG\",\"z\": 8251 },{ \"code3\": \"POL\",\"z\": 37908 },{ \"code3\": \"PRE\",\"z\": 904401 },{ \"code3\": \"PRI\",\"z\": 3410 },{ \"code3\": \"PRK\",\"z\": 25491 },{ \"code3\": \"PRT\",\"z\": 10286 },{ \"code3\": \"PRY\",\"z\": 6811 },{ \"code3\": \"PSE\",\"z\": 4674 },{ \"code3\": \"PSS\",\"z\": 2418 },{ \"code3\": \"PST\",\"z\": 1106289 },{ \"code3\": \"PYF\",\"z\": 283 },{ \"code3\": \"QAT\",\"z\": 2639 },{ \"code3\": \"ROU\",\"z\": 19586 },{ \"code3\": \"RUS\",\"z\": 144231 },{ \"code3\": \"RWA\",\"z\": 12208 },{ \"code3\": \"SAS\",\"z\": 1788234 },{ \"code3\": \"SAU\",\"z\": 32938 },{ \"code3\": \"SDN\",\"z\": 40533 },{ \"code3\": \"SEN\",\"z\": 15851 },{ \"code3\": \"SGP\",\"z\": 5688 },{ \"code3\": \"SLB\",\"z\": 611 },{ \"code3\": \"SLE\",\"z\": 7557 },{ \"code3\": \"SLV\",\"z\": 6378 },{ \"code3\": \"SMR\",\"z\": 33 },{ \"code3\": \"SOM\",\"z\": 14743 },{ \"code3\": \"SRB\",\"z\": 7031 },{ \"code3\": \"SSA\",\"z\": 1060936 },{ \"code3\": \"SSD\",\"z\": 12576 },{ \"code3\": \"SSF\",\"z\": 1061031 },{ \"code3\": \"SST\",\"z\": 40279 },{ \"code3\": \"STP\",\"z\": 204 },{ \"code3\": \"SUR\",\"z\": 563 },{ \"code3\": \"SVK\",\"z\": 5431 },{ \"code3\": \"SVN\",\"z\": 2066 },{ \"code3\": \"SWE\",\"z\": 9971 },{ \"code3\": \"SWZ\",\"z\": 1367 },{ \"code3\": \"SXM\",\"z\": 40 },{ \"code3\": \"SYC\",\"z\": 95 },{ \"code3\": \"SYR\",\"z\": 18270 },{ \"code3\": \"TCA\",\"z\": 35 },{ \"code3\": \"TCD\",\"z\": 14900 },{ \"code3\": \"TEA\",\"z\": 2038479 },{ \"code3\": \"TEC\",\"z\": 457060 },{ \"code3\": \"TGO\",\"z\": 7798 },{ \"code3\": \"THA\",\"z\": 69038 },{ \"code3\": \"TJK\",\"z\": 8921 },{ \"code3\": \"TKM\",\"z\": 5758 },{ \"code3\": \"TLA\",\"z\": 628061 },{ \"code3\": \"TLS\",\"z\": 1296 },{ \"code3\": \"TMN\",\"z\": 375217 },{ \"code3\": \"TON\",\"z\": 108 },{ \"code3\": \"TSA\",\"z\": 1788234 },{ \"code3\": \"TSS\",\"z\": 1061031 },{ \"code3\": \"TTO\",\"z\": 1369 },{ \"code3\": \"TUN\",\"z\": 11532 },{ \"code3\": \"TUR\",\"z\": 80745 },{ \"code3\": \"TUV\",\"z\": 11 },{ \"code3\": \"TZA\",\"z\": 57310 },{ \"code3\": \"UGA\",\"z\": 42863 },{ \"code3\": \"UKR\",\"z\": 44776 },{ \"code3\": \"UMC\",\"z\": 2596364 },{ \"code3\": \"URY\",\"z\": 3457 },{ \"code3\": \"USA\",\"z\": 325524 },{ \"code3\": \"UZB\",\"z\": 32262 },{ \"code3\": \"VCT\",\"z\": 110 },{ \"code3\": \"VEN\",\"z\": 31977 },{ \"code3\": \"VGB\",\"z\": 31 },{ \"code3\": \"VIR\",\"z\": 103 },{ \"code3\": \"VNM\",\"z\": 93652 },{ \"code3\": \"VUT\",\"z\": 276 },{ \"code3\": \"WLD\",\"z\": 7523997 },{ \"code3\": \"WSM\",\"z\": 196 },{ \"code3\": \"XKX\",\"z\": 1814 },{ \"code3\": \"YEM\",\"z\": 28250 },{ \"code3\": \"ZAF\",\"z\": 56639 },{ \"code3\": \"ZMB\",\"z\": 17094 },{ \"code3\": \"ZWE\",\"z\": 16530 } ],\"minSize\": 4,\"maxSize\": \"12%\",\"tooltip\": { \"pointFormat\": \"{point.properties.hc-a2}: {point.z} thousands\" } }] };\n", + " var options = { \"chart\": { \"borderWidth\": 1,\"map\": \"custom/world\",\"renderTo\": \"gunmkapizrv\" },\"title\": { \"text\": \"World population 2013 by country\" },\"subtitle\": { \"text\": \"Demo of Highcharts map with bubbles\" },\"legend\": { \"enabled\": false },\"mapNavigation\": { \"enabled\": true,\"buttonOptions\": { \"verticalAlign\": \"bottom\" } },\"series\": [{ \"name\": \"Countries\",\"color\": \"#E0E0E0\",\"enableMouseTracking\": false },{ \"type\": \"mapbubble\",\"name\": \"Population 2016\",\"joinBy\": [ \"iso-a3\",\"code3\" ],\"data\": [ { \"code3\": \"ABW\",\"z\": 105 },{ \"code3\": \"AFG\",\"z\": 35530 },{ \"code3\": \"AGO\",\"z\": 29784 },{ \"code3\": \"ALB\",\"z\": 2879 },{ \"code3\": \"AND\",\"z\": 77 },{ \"code3\": \"ARB\",\"z\": 414481 },{ \"code3\": \"ARE\",\"z\": 9400 },{ \"code3\": \"ARG\",\"z\": 44271 },{ \"code3\": \"ARM\",\"z\": 2930 },{ \"code3\": \"ASM\",\"z\": 56 },{ \"code3\": \"ATG\",\"z\": 102 },{ \"code3\": \"AUS\",\"z\": 24446 },{ \"code3\": \"AUT\",\"z\": 8770 },{ \"code3\": \"AZE\",\"z\": 9868 },{ \"code3\": \"BDI\",\"z\": 10864 },{ \"code3\": \"BEL\",\"z\": 11416 },{ \"code3\": \"BEN\",\"z\": 11176 },{ \"code3\": \"BFA\",\"z\": 19193 },{ \"code3\": \"BGD\",\"z\": 164670 },{ \"code3\": \"BGR\",\"z\": 7075 },{ \"code3\": \"BHR\",\"z\": 1493 },{ \"code3\": \"BHS\",\"z\": 395 },{ \"code3\": \"BIH\",\"z\": 3507 },{ \"code3\": \"BLR\",\"z\": 9480 },{ \"code3\": \"BLZ\",\"z\": 375 },{ \"code3\": \"BMU\",\"z\": 65 },{ \"code3\": \"BOL\",\"z\": 11052 },{ \"code3\": \"BRA\",\"z\": 209288 },{ \"code3\": \"BRB\",\"z\": 286 },{ \"code3\": \"BRN\",\"z\": 429 },{ \"code3\": \"BTN\",\"z\": 808 },{ \"code3\": \"BWA\",\"z\": 2292 },{ \"code3\": \"CAF\",\"z\": 4659 },{ \"code3\": \"CAN\",\"z\": 36613 },{ \"code3\": \"CEB\",\"z\": 102696 },{ \"code3\": \"CHE\",\"z\": 8441 },{ \"code3\": \"CHI\",\"z\": 165 },{ \"code3\": \"CHL\",\"z\": 18055 },{ \"code3\": \"CHN\",\"z\": 1383981 },{ \"code3\": \"CIV\",\"z\": 24295 },{ \"code3\": \"CMR\",\"z\": 24054 },{ \"code3\": \"COD\",\"z\": 81340 },{ \"code3\": \"COG\",\"z\": 5261 },{ \"code3\": \"COL\",\"z\": 49066 },{ \"code3\": \"COM\",\"z\": 814 },{ \"code3\": \"CPV\",\"z\": 546 },{ \"code3\": \"CRI\",\"z\": 4906 },{ \"code3\": \"CSS\",\"z\": 7284 },{ \"code3\": \"CUB\",\"z\": 11485 },{ \"code3\": \"CUW\",\"z\": 161 },{ \"code3\": \"CYM\",\"z\": 62 },{ \"code3\": \"CYP\",\"z\": 1180 },{ \"code3\": \"CZE\",\"z\": 10571 },{ \"code3\": \"DEU\",\"z\": 82581 },{ \"code3\": \"DJI\",\"z\": 957 },{ \"code3\": \"DMA\",\"z\": 74 },{ \"code3\": \"DNK\",\"z\": 5751 },{ \"code3\": \"DOM\",\"z\": 10767 },{ \"code3\": \"DZA\",\"z\": 41318 },{ \"code3\": \"EAP\",\"z\": 2064004 },{ \"code3\": \"EAR\",\"z\": 3213167 },{ \"code3\": \"EAS\",\"z\": 2309732 },{ \"code3\": \"ECA\",\"z\": 419152 },{ \"code3\": \"ECS\",\"z\": 914474 },{ \"code3\": \"ECU\",\"z\": 16625 },{ \"code3\": \"EGY\",\"z\": 97553 },{ \"code3\": \"EMU\",\"z\": 341175 },{ \"code3\": \"ERI\",\"z\": 4475 },{ \"code3\": \"ESP\",\"z\": 46460 },{ \"code3\": \"EST\",\"z\": 1313 },{ \"code3\": \"ETH\",\"z\": 104957 },{ \"code3\": \"EUU\",\"z\": 511990 },{ \"code3\": \"FCS\",\"z\": 517571 },{ \"code3\": \"FIN\",\"z\": 5510 },{ \"code3\": \"FJI\",\"z\": 906 },{ \"code3\": \"FRA\",\"z\": 67143 },{ \"code3\": \"FRO\",\"z\": 49 },{ \"code3\": \"FSM\",\"z\": 106 },{ \"code3\": \"GAB\",\"z\": 2025 },{ \"code3\": \"GBR\",\"z\": 66013 },{ \"code3\": \"GEO\",\"z\": 3715 },{ \"code3\": \"GHA\",\"z\": 28834 },{ \"code3\": \"GIB\",\"z\": 35 },{ \"code3\": \"GIN\",\"z\": 12717 },{ \"code3\": \"GMB\",\"z\": 2101 },{ \"code3\": \"GNB\",\"z\": 1861 },{ \"code3\": \"GNQ\",\"z\": 1268 },{ \"code3\": \"GRC\",\"z\": 10726 },{ \"code3\": \"GRD\",\"z\": 108 },{ \"code3\": \"GRL\",\"z\": 56 },{ \"code3\": \"GTM\",\"z\": 16914 },{ \"code3\": \"GUM\",\"z\": 164 },{ \"code3\": \"GUY\",\"z\": 778 },{ \"code3\": \"HIC\",\"z\": 1195272 },{ \"code3\": \"HKG\",\"z\": 7406 },{ \"code3\": \"HND\",\"z\": 9265 },{ \"code3\": \"HPC\",\"z\": 765113 },{ \"code3\": \"HRV\",\"z\": 4155 },{ \"code3\": \"HTI\",\"z\": 10981 },{ \"code3\": \"HUN\",\"z\": 9785 },{ \"code3\": \"IBD\",\"z\": 4738332 },{ \"code3\": \"IBT\",\"z\": 6348082 },{ \"code3\": \"IDA\",\"z\": 1609750 },{ \"code3\": \"IDB\",\"z\": 532893 },{ \"code3\": \"IDN\",\"z\": 263991 },{ \"code3\": \"IDX\",\"z\": 1076857 },{ \"code3\": \"IMN\",\"z\": 84 },{ \"code3\": \"IND\",\"z\": 1339180 },{ \"code3\": \"INX\",\"z\": 0 },{ \"code3\": \"IRL\",\"z\": 4815 },{ \"code3\": \"IRN\",\"z\": 81163 },{ \"code3\": \"IRQ\",\"z\": 38275 },{ \"code3\": \"ISL\",\"z\": 337 },{ \"code3\": \"ISR\",\"z\": 8682 },{ \"code3\": \"ITA\",\"z\": 60570 },{ \"code3\": \"JAM\",\"z\": 2890 },{ \"code3\": \"JOR\",\"z\": 9702 },{ \"code3\": \"JPN\",\"z\": 126641 },{ \"code3\": \"KAZ\",\"z\": 17996 },{ \"code3\": \"KEN\",\"z\": 49700 },{ \"code3\": \"KGZ\",\"z\": 6173 },{ \"code3\": \"KHM\",\"z\": 16005 },{ \"code3\": \"KIR\",\"z\": 116 },{ \"code3\": \"KNA\",\"z\": 55 },{ \"code3\": \"KOR\",\"z\": 51439 },{ \"code3\": \"KWT\",\"z\": 4137 },{ \"code3\": \"LAC\",\"z\": 616508 },{ \"code3\": \"LAO\",\"z\": 6858 },{ \"code3\": \"LBN\",\"z\": 6082 },{ \"code3\": \"LBR\",\"z\": 4732 },{ \"code3\": \"LBY\",\"z\": 6375 },{ \"code3\": \"LCA\",\"z\": 179 },{ \"code3\": \"LCN\",\"z\": 644134 },{ \"code3\": \"LDC\",\"z\": 1002483 },{ \"code3\": \"LIC\",\"z\": 677007 },{ \"code3\": \"LIE\",\"z\": 38 },{ \"code3\": \"LKA\",\"z\": 21302 },{ \"code3\": \"LMC\",\"z\": 3055354 },{ \"code3\": \"LMY\",\"z\": 6328725 },{ \"code3\": \"LSO\",\"z\": 2233 },{ \"code3\": \"LTE\",\"z\": 2273459 },{ \"code3\": \"LTU\",\"z\": 2856 },{ \"code3\": \"LUX\",\"z\": 590 },{ \"code3\": \"LVA\",\"z\": 1950 },{ \"code3\": \"MAC\",\"z\": 623 },{ \"code3\": \"MAF\",\"z\": 32 },{ \"code3\": \"MAR\",\"z\": 35740 },{ \"code3\": \"MCO\",\"z\": 39 },{ \"code3\": \"MDA\",\"z\": 3544 },{ \"code3\": \"MDG\",\"z\": 25571 },{ \"code3\": \"MDV\",\"z\": 423 },{ \"code3\": \"MEA\",\"z\": 444255 },{ \"code3\": \"MEX\",\"z\": 129163 },{ \"code3\": \"MHL\",\"z\": 53 },{ \"code3\": \"MIC\",\"z\": 5651718 },{ \"code3\": \"MKD\",\"z\": 2083 },{ \"code3\": \"MLI\",\"z\": 18542 },{ \"code3\": \"MLT\",\"z\": 439 },{ \"code3\": \"MMR\",\"z\": 53371 },{ \"code3\": \"MNA\",\"z\": 379891 },{ \"code3\": \"MNE\",\"z\": 623 },{ \"code3\": \"MNG\",\"z\": 3076 },{ \"code3\": \"MNP\",\"z\": 55 },{ \"code3\": \"MOZ\",\"z\": 29669 },{ \"code3\": \"MRT\",\"z\": 4420 },{ \"code3\": \"MUS\",\"z\": 1267 },{ \"code3\": \"MWI\",\"z\": 18622 },{ \"code3\": \"MYS\",\"z\": 31624 },{ \"code3\": \"NAC\",\"z\": 362137 },{ \"code3\": \"NAM\",\"z\": 2534 },{ \"code3\": \"NCL\",\"z\": 281 },{ \"code3\": \"NER\",\"z\": 21477 },{ \"code3\": \"NGA\",\"z\": 190886 },{ \"code3\": \"NIC\",\"z\": 6218 },{ \"code3\": \"NLD\",\"z\": 17073 },{ \"code3\": \"NOR\",\"z\": 5289 },{ \"code3\": \"NPL\",\"z\": 29305 },{ \"code3\": \"NRU\",\"z\": 13 },{ \"code3\": \"NZL\",\"z\": 4736 },{ \"code3\": \"OED\",\"z\": 1296810 },{ \"code3\": \"OMN\",\"z\": 4636 },{ \"code3\": \"OSS\",\"z\": 30577 },{ \"code3\": \"PAK\",\"z\": 197016 },{ \"code3\": \"PAN\",\"z\": 4099 },{ \"code3\": \"PER\",\"z\": 32165 },{ \"code3\": \"PHL\",\"z\": 104918 },{ \"code3\": \"PLW\",\"z\": 22 },{ \"code3\": \"PNG\",\"z\": 8251 },{ \"code3\": \"POL\",\"z\": 37908 },{ \"code3\": \"PRE\",\"z\": 904401 },{ \"code3\": \"PRI\",\"z\": 3410 },{ \"code3\": \"PRK\",\"z\": 25491 },{ \"code3\": \"PRT\",\"z\": 10286 },{ \"code3\": \"PRY\",\"z\": 6811 },{ \"code3\": \"PSE\",\"z\": 4674 },{ \"code3\": \"PSS\",\"z\": 2418 },{ \"code3\": \"PST\",\"z\": 1106289 },{ \"code3\": \"PYF\",\"z\": 283 },{ \"code3\": \"QAT\",\"z\": 2639 },{ \"code3\": \"ROU\",\"z\": 19586 },{ \"code3\": \"RUS\",\"z\": 144231 },{ \"code3\": \"RWA\",\"z\": 12208 },{ \"code3\": \"SAS\",\"z\": 1788234 },{ \"code3\": \"SAU\",\"z\": 32938 },{ \"code3\": \"SDN\",\"z\": 40533 },{ \"code3\": \"SEN\",\"z\": 15851 },{ \"code3\": \"SGP\",\"z\": 5688 },{ \"code3\": \"SLB\",\"z\": 611 },{ \"code3\": \"SLE\",\"z\": 7557 },{ \"code3\": \"SLV\",\"z\": 6378 },{ \"code3\": \"SMR\",\"z\": 33 },{ \"code3\": \"SOM\",\"z\": 14743 },{ \"code3\": \"SRB\",\"z\": 7031 },{ \"code3\": \"SSA\",\"z\": 1060936 },{ \"code3\": \"SSD\",\"z\": 12576 },{ \"code3\": \"SSF\",\"z\": 1061031 },{ \"code3\": \"SST\",\"z\": 40279 },{ \"code3\": \"STP\",\"z\": 204 },{ \"code3\": \"SUR\",\"z\": 563 },{ \"code3\": \"SVK\",\"z\": 5431 },{ \"code3\": \"SVN\",\"z\": 2066 },{ \"code3\": \"SWE\",\"z\": 9971 },{ \"code3\": \"SWZ\",\"z\": 1367 },{ \"code3\": \"SXM\",\"z\": 40 },{ \"code3\": \"SYC\",\"z\": 95 },{ \"code3\": \"SYR\",\"z\": 18270 },{ \"code3\": \"TCA\",\"z\": 35 },{ \"code3\": \"TCD\",\"z\": 14900 },{ \"code3\": \"TEA\",\"z\": 2038479 },{ \"code3\": \"TEC\",\"z\": 457060 },{ \"code3\": \"TGO\",\"z\": 7798 },{ \"code3\": \"THA\",\"z\": 69038 },{ \"code3\": \"TJK\",\"z\": 8921 },{ \"code3\": \"TKM\",\"z\": 5758 },{ \"code3\": \"TLA\",\"z\": 628061 },{ \"code3\": \"TLS\",\"z\": 1296 },{ \"code3\": \"TMN\",\"z\": 375217 },{ \"code3\": \"TON\",\"z\": 108 },{ \"code3\": \"TSA\",\"z\": 1788234 },{ \"code3\": \"TSS\",\"z\": 1061031 },{ \"code3\": \"TTO\",\"z\": 1369 },{ \"code3\": \"TUN\",\"z\": 11532 },{ \"code3\": \"TUR\",\"z\": 80745 },{ \"code3\": \"TUV\",\"z\": 11 },{ \"code3\": \"TZA\",\"z\": 57310 },{ \"code3\": \"UGA\",\"z\": 42863 },{ \"code3\": \"UKR\",\"z\": 44776 },{ \"code3\": \"UMC\",\"z\": 2596364 },{ \"code3\": \"URY\",\"z\": 3457 },{ \"code3\": \"USA\",\"z\": 325524 },{ \"code3\": \"UZB\",\"z\": 32262 },{ \"code3\": \"VCT\",\"z\": 110 },{ \"code3\": \"VEN\",\"z\": 31977 },{ \"code3\": \"VGB\",\"z\": 31 },{ \"code3\": \"VIR\",\"z\": 103 },{ \"code3\": \"VNM\",\"z\": 93652 },{ \"code3\": \"VUT\",\"z\": 276 },{ \"code3\": \"WLD\",\"z\": 7523997 },{ \"code3\": \"WSM\",\"z\": 196 },{ \"code3\": \"XKX\",\"z\": 1814 },{ \"code3\": \"YEM\",\"z\": 28250 },{ \"code3\": \"ZAF\",\"z\": 56639 },{ \"code3\": \"ZMB\",\"z\": 17094 },{ \"code3\": \"ZWE\",\"z\": 16530 } ],\"minSize\": 4,\"maxSize\": \"12%\",\"tooltip\": { \"pointFormat\": \"{point.properties.hc-a2}: {point.z} thousands\" } }] };\n", " \n", - " window.chart_apubdrlevom = new Highcharts.Map(options);\n", + " window.chart_gunmkapizrv = new Highcharts.Map(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -898,7 +908,6 @@ ], "source": [ " opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " borderWidth: 1,\n", " map: 'custom/world'\n", @@ -2000,7 +2009,7 @@ " }\n", " ]\n", "\n", - "map_bubble = Daru::View::Plot.new(series_dt, opts)\n", + "map_bubble = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "map_bubble.show_in_iruby" ] }, @@ -2016,7 +2025,7 @@ " /* BEGIN modules/tilemap.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Tilemap module\n", "\n", " (c) 2010-2017 Highsoft AS\n", @@ -2037,7 +2046,7 @@ "m;e+=q;l-=q;t-=p;n+=p;a.tileEdges={x1:e,x2:h,x3:l,y1:t,y2:m,y3:n};a.shapeType=\"path\";a.shapeArgs={d:[\"M\",h,t,\"L\",l,m,h,n,e,m,\"Z\"]}});this.translateColors()}},circle:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,2,2)},haloPath:function(a){return d.seriesTypes.scatter.prototype.pointClass.prototype.haloPath.call(this,a+(a&&this.radius))},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,g=(a.rowsize||1)/2,w=\n", "a.colsize||1,k,h,v,u,l=!1;this.generatePoints();r(this.points,function(a){var e=f(Math.round(b.len-b.translate(a.x,0,1,0,0)),-b.len,2*b.len),n=f(Math.round(c.translate(a.y,0,1,0,0)),-c.len,2*c.len),p=d,q=!1;void 0!==a.pointPadding&&(p=a.pointPadding,l=q=!0);if(!u||l)k=Math.abs(f(Math.floor(b.len-b.translate(a.x+w,0,1,0,0)),-b.len,2*b.len)-e),h=Math.abs(f(Math.floor(c.translate(a.y+g,0,1,0,0)),-c.len,2*c.len)-n),v=Math.floor(Math.sqrt(k*k+h*h)/2),u=Math.min(k,v,h)-p,l&&!q&&(l=!1);a.x%2&&(n+=h*(c.reversed?\n", "-1:1));a.plotX=a.clientX=e;a.plotY=n;a.radius=u;a.shapeType=\"circle\";a.shapeArgs={x:e,y:n,r:u}});this.translateColors()}},square:{alignDataLabel:d.seriesTypes.heatmap.prototype.alignDataLabel,translate:d.seriesTypes.heatmap.prototype.translate,getSeriesPadding:function(){},haloPath:d.seriesTypes.heatmap.prototype.pointClass.prototype.haloPath}};d.wrap(d.Axis.prototype,\"setAxisTranslation\",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var b=this,c=x(d.map(b.series,function(a){return a.getSeriesPixelPadding&&\n", - "a.getSeriesPixelPadding(b)}),function(a,b){return(a&&a.padding)>(b&&b.padding)?a:b})||{padding:0,axisLengthFactor:1},e=Math.round(c.padding*c.axisLengthFactor);c.padding&&(b.len-=e,a.apply(b,Array.prototype.slice.call(arguments,1)),b.minPixelPadding+=c.padding,b.len+=e)});g(\"tilemap\",\"heatmap\",{states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:\"hexagon\"},{setOptions:function(){var a=d.seriesTypes.heatmap.prototype.setOptions.apply(this,Array.prototype.slice.call(arguments));\n", + "a.getSeriesPixelPadding(b)}),function(a,b){return(a&&a.padding)>(b&&b.padding)?a:b},void 0)||{padding:0,axisLengthFactor:1},e=Math.round(c.padding*c.axisLengthFactor);c.padding&&(b.len-=e,a.apply(b,Array.prototype.slice.call(arguments,1)),b.minPixelPadding+=c.padding,b.len+=e)});g(\"tilemap\",\"heatmap\",{states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:\"hexagon\"},{setOptions:function(){var a=d.seriesTypes.heatmap.prototype.setOptions.apply(this,Array.prototype.slice.call(arguments));\n", "this.tileShape=d.tileShapeTypes[a.tileShape];return a},alignDataLabel:function(){return this.tileShape.alignDataLabel.apply(this,Array.prototype.slice.call(arguments))},getSeriesPixelPadding:function(a){var b=a.isXAxis,c=this.tileShape.getSeriesPadding(this),d;if(!c)return{padding:0,axisLengthFactor:1};d=Math.round(a.translate(b?2*c.xPad:c.yPad,0,1,0,1));a=Math.round(a.translate(b?c.xPad:0,0,1,0,1));return{padding:Math.abs(d-a)||0,axisLengthFactor:b?2:1.1}},translate:function(){return this.tileShape.translate.apply(this,\n", "Array.prototype.slice.call(arguments))}},d.extend({haloPath:function(){return this.series.tileShape.haloPath.apply(this,Array.prototype.slice.call(arguments))}},d.colorPointMixin))})(g)});\n", "\n", @@ -2050,7 +2059,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/tilemap.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Tilemap module\\n\\n (c) 2010-2017 Highsoft AS\\n\\n License: www.highcharts.com/license\\n*/\\n(function(g){\\\"object\\\"===typeof module&&module.exports?module.exports=g:g(Highcharts)})(function(g){(function(d){var g=d.defined,r=d.each,x=d.noop,u=d.seriesTypes;d.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(d){var f=this,a=d?\\\"show\\\":\\\"hide\\\";r([\\\"graphic\\\",\\\"dataLabel\\\"],function(b){if(f[b])f[b][a]()})},setState:function(f){d.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};\\nd.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:x,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:u.column.prototype.pointAttribs,translateColors:function(){var d=this,v=this.options.nullColor,a=this.colorAxis,b=this.colorKey;r(this.data,function(c){var e=c[b];if(e=c.options.color||(c.isNull?v:a&&void 0!==e?a.toColor(e,c):c.color||d.color))c.color=e})},colorAttribs:function(d){var f=\\n{};g(d.color)&&(f[this.colorProp||\\\"fill\\\"]=d.color);return f}}})(g);(function(d){var g=d.colorPointMixin,r=d.each,x=d.merge,u=d.noop,f=d.pick,v=d.Series,a=d.seriesType,b=d.seriesTypes;a(\\\"heatmap\\\",\\\"scatter\\\",{animation:!1,borderWidth:0,nullColor:\\\"#f7f7f7\\\",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:\\\"{point.x}, {point.y}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{hover:{halo:!1,brightness:.2}}},\\nx(d.colorSeriesMixin,{pointArrayMap:[\\\"y\\\",\\\"value\\\"],hasPointSpecificOptions:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;b.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=f(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var b=this.options,a=this.xAxis,d=this.yAxis,w=b.pointPadding||0,k=function(b,a,c){return Math.min(Math.max(a,b),c)};this.generatePoints();r(this.points,function(c){var h=(b.colsize||1)/2,e=(b.rowsize||\\n1)/2,l=k(Math.round(a.len-a.translate(c.x-h,0,1,0,1)),-a.len,2*a.len),h=k(Math.round(a.len-a.translate(c.x+h,0,1,0,1)),-a.len,2*a.len),t=k(Math.round(d.translate(c.y-e,0,1,0,1)),-d.len,2*d.len),e=k(Math.round(d.translate(c.y+e,0,1,0,1)),-d.len,2*d.len),m=f(c.pointPadding,w);c.plotX=c.clientX=(l+h)/2;c.plotY=(t+e)/2;c.shapeType=\\\"rect\\\";c.shapeArgs={x:Math.min(l,h)+m,y:Math.min(t,e)+m,width:Math.abs(h-l)-2*m,height:Math.abs(e-t)-2*m}});this.translateColors()},drawPoints:function(){b.column.prototype.drawPoints.call(this);\\nr(this.points,function(b){b.graphic.attr(this.colorAttribs(b))},this)},animate:u,getBox:u,drawLegendSymbol:d.LegendSymbolMixin.drawRectangle,alignDataLabel:b.column.prototype.alignDataLabel,getExtremes:function(){v.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;v.prototype.getExtremes.call(this)}}),d.extend({haloPath:function(b){if(!b)return[];var a=this.shapeArgs;return[\\\"M\\\",a.x-b,a.y-b,\\\"L\\\",a.x-b,a.y+a.height+b,a.x+a.width+b,a.y+a.height+b,a.x+\\na.width+b,a.y-b,\\\"Z\\\"]}},g))})(g);(function(d){var g=d.seriesType,r=d.each,x=d.reduce,u=d.pick,f=function(a,b,c){return Math.min(Math.max(b,a),c)},v=function(a,b,c){a=a.options;return{xPad:(a.colsize||1)/-b,yPad:(a.rowsize||1)/-c}};d.tileShapeTypes={hexagon:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,3,2)},haloPath:function(a){if(!a)return[];var b=this.tileEdges;return[\\\"M\\\",b.x2-a,b.y1+a,\\\"L\\\",b.x3+a,b.y1+a,b.x4+1.5*a,b.y2,b.x3+a,b.y3-a,b.x2-a,\\nb.y3-a,b.x1-1.5*a,b.y2,\\\"Z\\\"]},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,y=(a.colsize||1)/3,w=(a.rowsize||1)/2,k;this.generatePoints();r(this.points,function(a){var h=f(Math.floor(b.len-b.translate(a.x-2*y,0,1,0,1)),-b.len,2*b.len),e=f(Math.floor(b.len-b.translate(a.x-y,0,1,0,1)),-b.len,2*b.len),l=f(Math.floor(b.len-b.translate(a.x+y,0,1,0,1)),-b.len,2*b.len),t=f(Math.floor(b.len-b.translate(a.x+2*y,0,1,0,1)),-b.len,2*b.len),m=f(Math.floor(c.translate(a.y-\\nw,0,1,0,1)),-c.len,2*c.len),n=f(Math.floor(c.translate(a.y,0,1,0,1)),-c.len,2*c.len),p=f(Math.floor(c.translate(a.y+w,0,1,0,1)),-c.len,2*c.len),q=u(a.pointPadding,d),g=q*Math.abs(e-h)/Math.abs(p-n),g=b.reversed?-g:g,r=b.reversed?-q:q,q=c.reversed?-q:q;a.x%2&&(k=k||Math.round(Math.abs(p-m)/2)*(c.reversed?-1:1),m+=k,n+=k,p+=k);a.plotX=a.clientX=(e+l)/2;a.plotY=n;h+=g+r;e+=r;l-=r;t-=g+r;m-=q;p+=q;a.tileEdges={x1:h,x2:e,x3:l,x4:t,y1:m,y2:n,y3:p};a.shapeType=\\\"path\\\";a.shapeArgs={d:[\\\"M\\\",e,m,\\\"L\\\",l,m,t,n,\\nl,p,e,p,h,n,\\\"Z\\\"]}});this.translateColors()}},diamond:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,2,2)},haloPath:function(a){if(!a)return[];var b=this.tileEdges;return[\\\"M\\\",b.x2,b.y1+a,\\\"L\\\",b.x3+a,b.y2,b.x2,b.y3-a,b.x1-a,b.y2,\\\"Z\\\"]},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,g=a.colsize||1,w=(a.rowsize||1)/2,k;this.generatePoints();r(this.points,function(a){var e=f(Math.round(b.len-b.translate(a.x-g,\\n0,1,0,0)),-b.len,2*b.len),h=f(Math.round(b.len-b.translate(a.x,0,1,0,0)),-b.len,2*b.len),l=f(Math.round(b.len-b.translate(a.x+g,0,1,0,0)),-b.len,2*b.len),t=f(Math.round(c.translate(a.y-w,0,1,0,0)),-c.len,2*c.len),m=f(Math.round(c.translate(a.y,0,1,0,0)),-c.len,2*c.len),n=f(Math.round(c.translate(a.y+w,0,1,0,0)),-c.len,2*c.len),p=u(a.pointPadding,d),q=p*Math.abs(h-e)/Math.abs(n-m),q=b.reversed?-q:q,p=c.reversed?-p:p;a.x%2&&(k=Math.abs(n-t)/2*(c.reversed?-1:1),t+=k,m+=k,n+=k);a.plotX=a.clientX=h;a.plotY=\\nm;e+=q;l-=q;t-=p;n+=p;a.tileEdges={x1:e,x2:h,x3:l,y1:t,y2:m,y3:n};a.shapeType=\\\"path\\\";a.shapeArgs={d:[\\\"M\\\",h,t,\\\"L\\\",l,m,h,n,e,m,\\\"Z\\\"]}});this.translateColors()}},circle:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,2,2)},haloPath:function(a){return d.seriesTypes.scatter.prototype.pointClass.prototype.haloPath.call(this,a+(a&&this.radius))},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,g=(a.rowsize||1)/2,w=\\na.colsize||1,k,h,v,u,l=!1;this.generatePoints();r(this.points,function(a){var e=f(Math.round(b.len-b.translate(a.x,0,1,0,0)),-b.len,2*b.len),n=f(Math.round(c.translate(a.y,0,1,0,0)),-c.len,2*c.len),p=d,q=!1;void 0!==a.pointPadding&&(p=a.pointPadding,l=q=!0);if(!u||l)k=Math.abs(f(Math.floor(b.len-b.translate(a.x+w,0,1,0,0)),-b.len,2*b.len)-e),h=Math.abs(f(Math.floor(c.translate(a.y+g,0,1,0,0)),-c.len,2*c.len)-n),v=Math.floor(Math.sqrt(k*k+h*h)/2),u=Math.min(k,v,h)-p,l&&!q&&(l=!1);a.x%2&&(n+=h*(c.reversed?\\n-1:1));a.plotX=a.clientX=e;a.plotY=n;a.radius=u;a.shapeType=\\\"circle\\\";a.shapeArgs={x:e,y:n,r:u}});this.translateColors()}},square:{alignDataLabel:d.seriesTypes.heatmap.prototype.alignDataLabel,translate:d.seriesTypes.heatmap.prototype.translate,getSeriesPadding:function(){},haloPath:d.seriesTypes.heatmap.prototype.pointClass.prototype.haloPath}};d.wrap(d.Axis.prototype,\\\"setAxisTranslation\\\",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var b=this,c=x(d.map(b.series,function(a){return a.getSeriesPixelPadding&&\\na.getSeriesPixelPadding(b)}),function(a,b){return(a&&a.padding)>(b&&b.padding)?a:b})||{padding:0,axisLengthFactor:1},e=Math.round(c.padding*c.axisLengthFactor);c.padding&&(b.len-=e,a.apply(b,Array.prototype.slice.call(arguments,1)),b.minPixelPadding+=c.padding,b.len+=e)});g(\\\"tilemap\\\",\\\"heatmap\\\",{states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:\\\"hexagon\\\"},{setOptions:function(){var a=d.seriesTypes.heatmap.prototype.setOptions.apply(this,Array.prototype.slice.call(arguments));\\nthis.tileShape=d.tileShapeTypes[a.tileShape];return a},alignDataLabel:function(){return this.tileShape.alignDataLabel.apply(this,Array.prototype.slice.call(arguments))},getSeriesPixelPadding:function(a){var b=a.isXAxis,c=this.tileShape.getSeriesPadding(this),d;if(!c)return{padding:0,axisLengthFactor:1};d=Math.round(a.translate(b?2*c.xPad:c.yPad,0,1,0,1));a=Math.round(a.translate(b?c.xPad:0,0,1,0,1));return{padding:Math.abs(d-a)||0,axisLengthFactor:b?2:1.1}},translate:function(){return this.tileShape.translate.apply(this,\\nArray.prototype.slice.call(arguments))}},d.extend({haloPath:function(){return this.series.tileShape.haloPath.apply(this,Array.prototype.slice.call(arguments))}},d.colorPointMixin))})(g)});\\n\\n /* END modules/tilemap.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/tilemap.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Tilemap module\\n\\n (c) 2010-2017 Highsoft AS\\n\\n License: www.highcharts.com/license\\n*/\\n(function(g){\\\"object\\\"===typeof module&&module.exports?module.exports=g:g(Highcharts)})(function(g){(function(d){var g=d.defined,r=d.each,x=d.noop,u=d.seriesTypes;d.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(d){var f=this,a=d?\\\"show\\\":\\\"hide\\\";r([\\\"graphic\\\",\\\"dataLabel\\\"],function(b){if(f[b])f[b][a]()})},setState:function(f){d.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};\\nd.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:x,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:u.column.prototype.pointAttribs,translateColors:function(){var d=this,v=this.options.nullColor,a=this.colorAxis,b=this.colorKey;r(this.data,function(c){var e=c[b];if(e=c.options.color||(c.isNull?v:a&&void 0!==e?a.toColor(e,c):c.color||d.color))c.color=e})},colorAttribs:function(d){var f=\\n{};g(d.color)&&(f[this.colorProp||\\\"fill\\\"]=d.color);return f}}})(g);(function(d){var g=d.colorPointMixin,r=d.each,x=d.merge,u=d.noop,f=d.pick,v=d.Series,a=d.seriesType,b=d.seriesTypes;a(\\\"heatmap\\\",\\\"scatter\\\",{animation:!1,borderWidth:0,nullColor:\\\"#f7f7f7\\\",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:\\\"{point.x}, {point.y}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{hover:{halo:!1,brightness:.2}}},\\nx(d.colorSeriesMixin,{pointArrayMap:[\\\"y\\\",\\\"value\\\"],hasPointSpecificOptions:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;b.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=f(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var b=this.options,a=this.xAxis,d=this.yAxis,w=b.pointPadding||0,k=function(b,a,c){return Math.min(Math.max(a,b),c)};this.generatePoints();r(this.points,function(c){var h=(b.colsize||1)/2,e=(b.rowsize||\\n1)/2,l=k(Math.round(a.len-a.translate(c.x-h,0,1,0,1)),-a.len,2*a.len),h=k(Math.round(a.len-a.translate(c.x+h,0,1,0,1)),-a.len,2*a.len),t=k(Math.round(d.translate(c.y-e,0,1,0,1)),-d.len,2*d.len),e=k(Math.round(d.translate(c.y+e,0,1,0,1)),-d.len,2*d.len),m=f(c.pointPadding,w);c.plotX=c.clientX=(l+h)/2;c.plotY=(t+e)/2;c.shapeType=\\\"rect\\\";c.shapeArgs={x:Math.min(l,h)+m,y:Math.min(t,e)+m,width:Math.abs(h-l)-2*m,height:Math.abs(e-t)-2*m}});this.translateColors()},drawPoints:function(){b.column.prototype.drawPoints.call(this);\\nr(this.points,function(b){b.graphic.attr(this.colorAttribs(b))},this)},animate:u,getBox:u,drawLegendSymbol:d.LegendSymbolMixin.drawRectangle,alignDataLabel:b.column.prototype.alignDataLabel,getExtremes:function(){v.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;v.prototype.getExtremes.call(this)}}),d.extend({haloPath:function(b){if(!b)return[];var a=this.shapeArgs;return[\\\"M\\\",a.x-b,a.y-b,\\\"L\\\",a.x-b,a.y+a.height+b,a.x+a.width+b,a.y+a.height+b,a.x+\\na.width+b,a.y-b,\\\"Z\\\"]}},g))})(g);(function(d){var g=d.seriesType,r=d.each,x=d.reduce,u=d.pick,f=function(a,b,c){return Math.min(Math.max(b,a),c)},v=function(a,b,c){a=a.options;return{xPad:(a.colsize||1)/-b,yPad:(a.rowsize||1)/-c}};d.tileShapeTypes={hexagon:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,3,2)},haloPath:function(a){if(!a)return[];var b=this.tileEdges;return[\\\"M\\\",b.x2-a,b.y1+a,\\\"L\\\",b.x3+a,b.y1+a,b.x4+1.5*a,b.y2,b.x3+a,b.y3-a,b.x2-a,\\nb.y3-a,b.x1-1.5*a,b.y2,\\\"Z\\\"]},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,y=(a.colsize||1)/3,w=(a.rowsize||1)/2,k;this.generatePoints();r(this.points,function(a){var h=f(Math.floor(b.len-b.translate(a.x-2*y,0,1,0,1)),-b.len,2*b.len),e=f(Math.floor(b.len-b.translate(a.x-y,0,1,0,1)),-b.len,2*b.len),l=f(Math.floor(b.len-b.translate(a.x+y,0,1,0,1)),-b.len,2*b.len),t=f(Math.floor(b.len-b.translate(a.x+2*y,0,1,0,1)),-b.len,2*b.len),m=f(Math.floor(c.translate(a.y-\\nw,0,1,0,1)),-c.len,2*c.len),n=f(Math.floor(c.translate(a.y,0,1,0,1)),-c.len,2*c.len),p=f(Math.floor(c.translate(a.y+w,0,1,0,1)),-c.len,2*c.len),q=u(a.pointPadding,d),g=q*Math.abs(e-h)/Math.abs(p-n),g=b.reversed?-g:g,r=b.reversed?-q:q,q=c.reversed?-q:q;a.x%2&&(k=k||Math.round(Math.abs(p-m)/2)*(c.reversed?-1:1),m+=k,n+=k,p+=k);a.plotX=a.clientX=(e+l)/2;a.plotY=n;h+=g+r;e+=r;l-=r;t-=g+r;m-=q;p+=q;a.tileEdges={x1:h,x2:e,x3:l,x4:t,y1:m,y2:n,y3:p};a.shapeType=\\\"path\\\";a.shapeArgs={d:[\\\"M\\\",e,m,\\\"L\\\",l,m,t,n,\\nl,p,e,p,h,n,\\\"Z\\\"]}});this.translateColors()}},diamond:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,2,2)},haloPath:function(a){if(!a)return[];var b=this.tileEdges;return[\\\"M\\\",b.x2,b.y1+a,\\\"L\\\",b.x3+a,b.y2,b.x2,b.y3-a,b.x1-a,b.y2,\\\"Z\\\"]},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,g=a.colsize||1,w=(a.rowsize||1)/2,k;this.generatePoints();r(this.points,function(a){var e=f(Math.round(b.len-b.translate(a.x-g,\\n0,1,0,0)),-b.len,2*b.len),h=f(Math.round(b.len-b.translate(a.x,0,1,0,0)),-b.len,2*b.len),l=f(Math.round(b.len-b.translate(a.x+g,0,1,0,0)),-b.len,2*b.len),t=f(Math.round(c.translate(a.y-w,0,1,0,0)),-c.len,2*c.len),m=f(Math.round(c.translate(a.y,0,1,0,0)),-c.len,2*c.len),n=f(Math.round(c.translate(a.y+w,0,1,0,0)),-c.len,2*c.len),p=u(a.pointPadding,d),q=p*Math.abs(h-e)/Math.abs(n-m),q=b.reversed?-q:q,p=c.reversed?-p:p;a.x%2&&(k=Math.abs(n-t)/2*(c.reversed?-1:1),t+=k,m+=k,n+=k);a.plotX=a.clientX=h;a.plotY=\\nm;e+=q;l-=q;t-=p;n+=p;a.tileEdges={x1:e,x2:h,x3:l,y1:t,y2:m,y3:n};a.shapeType=\\\"path\\\";a.shapeArgs={d:[\\\"M\\\",h,t,\\\"L\\\",l,m,h,n,e,m,\\\"Z\\\"]}});this.translateColors()}},circle:{alignDataLabel:d.seriesTypes.scatter.prototype.alignDataLabel,getSeriesPadding:function(a){return v(a,2,2)},haloPath:function(a){return d.seriesTypes.scatter.prototype.pointClass.prototype.haloPath.call(this,a+(a&&this.radius))},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,d=a.pointPadding||0,g=(a.rowsize||1)/2,w=\\na.colsize||1,k,h,v,u,l=!1;this.generatePoints();r(this.points,function(a){var e=f(Math.round(b.len-b.translate(a.x,0,1,0,0)),-b.len,2*b.len),n=f(Math.round(c.translate(a.y,0,1,0,0)),-c.len,2*c.len),p=d,q=!1;void 0!==a.pointPadding&&(p=a.pointPadding,l=q=!0);if(!u||l)k=Math.abs(f(Math.floor(b.len-b.translate(a.x+w,0,1,0,0)),-b.len,2*b.len)-e),h=Math.abs(f(Math.floor(c.translate(a.y+g,0,1,0,0)),-c.len,2*c.len)-n),v=Math.floor(Math.sqrt(k*k+h*h)/2),u=Math.min(k,v,h)-p,l&&!q&&(l=!1);a.x%2&&(n+=h*(c.reversed?\\n-1:1));a.plotX=a.clientX=e;a.plotY=n;a.radius=u;a.shapeType=\\\"circle\\\";a.shapeArgs={x:e,y:n,r:u}});this.translateColors()}},square:{alignDataLabel:d.seriesTypes.heatmap.prototype.alignDataLabel,translate:d.seriesTypes.heatmap.prototype.translate,getSeriesPadding:function(){},haloPath:d.seriesTypes.heatmap.prototype.pointClass.prototype.haloPath}};d.wrap(d.Axis.prototype,\\\"setAxisTranslation\\\",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var b=this,c=x(d.map(b.series,function(a){return a.getSeriesPixelPadding&&\\na.getSeriesPixelPadding(b)}),function(a,b){return(a&&a.padding)>(b&&b.padding)?a:b},void 0)||{padding:0,axisLengthFactor:1},e=Math.round(c.padding*c.axisLengthFactor);c.padding&&(b.len-=e,a.apply(b,Array.prototype.slice.call(arguments,1)),b.minPixelPadding+=c.padding,b.len+=e)});g(\\\"tilemap\\\",\\\"heatmap\\\",{states:{hover:{halo:{enabled:!0,size:2,opacity:.5,attributes:{zIndex:3}}}},pointPadding:2,tileShape:\\\"hexagon\\\"},{setOptions:function(){var a=d.seriesTypes.heatmap.prototype.setOptions.apply(this,Array.prototype.slice.call(arguments));\\nthis.tileShape=d.tileShapeTypes[a.tileShape];return a},alignDataLabel:function(){return this.tileShape.alignDataLabel.apply(this,Array.prototype.slice.call(arguments))},getSeriesPixelPadding:function(a){var b=a.isXAxis,c=this.tileShape.getSeriesPadding(this),d;if(!c)return{padding:0,axisLengthFactor:1};d=Math.round(a.translate(b?2*c.xPad:c.yPad,0,1,0,1));a=Math.round(a.translate(b?c.xPad:0,0,1,0,1));return{padding:Math.abs(d-a)||0,axisLengthFactor:b?2:1.1}},translate:function(){return this.tileShape.translate.apply(this,\\nArray.prototype.slice.call(arguments))}},d.extend({haloPath:function(){return this.series.tileShape.haloPath.apply(this,Array.prototype.slice.call(arguments))}},d.colorPointMixin))})(g)});\\n\\n /* END modules/tilemap.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -2062,17 +2071,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -2087,7 +2096,6 @@ " inverted: true,\n", " height: '80%'\n", " },\n", - " modules: ['modules/tilemap'],\n", "\n", " title: {\n", " text: 'U.S. states by population in 2016'\n", @@ -2509,7 +2517,7 @@ " }]\n", " }]\n", "\n", - "honeycomb = Daru::View::Plot.new(series_dt, opts)\n", + "honeycomb = Daru::View::Plot.new(series_dt, opts, modules: ['modules/tilemap'])\n", "honeycomb.show_in_iruby" ] }, @@ -2541,17 +2549,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -3174,17 +3182,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -3323,17 +3331,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -3343,7 +3351,6 @@ ], "source": [ "opts = {\n", - " chart_class: 'map',\n", " chart: {\n", " plotBorderWidth: 1,\n", " plotBackgroundColor: '#f4e2ba',\n", @@ -3538,7 +3545,7 @@ " }\n", " ]\n", "\n", - "drainage = Daru::View::Plot.new(series_dt, opts)\n", + "drainage = Daru::View::Plot.new(series_dt, opts, chart_class: 'map')\n", "drainage.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/Highcharts - Combinations .ipynb b/spec/dummy_iruby/Highcharts - Combinations .ipynb index 1cdba6f..20b2fe9 100644 --- a/spec/dummy_iruby/Highcharts - Combinations .ipynb +++ b/spec/dummy_iruby/Highcharts - Combinations .ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"zoomType\": \"xy\",\"renderTo\": \"npudyrwfjik\" },\"title\": { \"text\": \"Average Monthly Temperature and Rainfall in Tokyo\" },\"subtitle\": { \"text\": \"Source: WorldClimate.com\" },\"xAxis\": [ { \"categories\": [ \"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\" ],\"crosshair\": true } ],\"yAxis\": [ { \"labels\": { \"format\": \"{value}°C\",\"style\": { \"color\": Highcharts.getOptions().colors[1] } },\"title\": { \"text\": \"Temperature\",\"style\": { \"color\": Highcharts.getOptions().colors[1] } } },{ \"title\": { \"text\": \"Rainfall\",\"style\": { \"color\": Highcharts.getOptions().colors[0] } },\"labels\": { \"format\": \"{value} mm\",\"style\": { \"color\": Highcharts.getOptions().colors[0] } },\"opposite\": true } ],\"tooltip\": { \"shared\": true },\"legend\": { \"layout\": \"vertical\",\"align\": \"left\",\"x\": 120,\"verticalAlign\": \"top\",\"y\": 100,\"floating\": true,\"backgroundColor\": (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF' },\"series\": [{ \"name\": \"Rainfall\",\"type\": \"column\",\"yAxis\": 1,\"data\": [ 49.9,71.5,106.4,129.2,144.0,176.0,135.6,148.5,216.4,194.1,95.6,54.4 ],\"tooltip\": { \"valueSuffix\": \" mm\" } },{ \"name\": \"Temperature\",\"type\": \"spline\",\"data\": [ 7.0,6.9,9.5,14.5,18.2,21.5,25.2,26.5,23.3,18.3,13.9,9.6 ],\"tooltip\": { \"valueSuffix\": \"°C\" } }] };\n", + " var options = { \"chart\": { \"zoomType\": \"xy\",\"renderTo\": \"nfjozxukmwy\" },\"title\": { \"text\": \"Average Monthly Temperature and Rainfall in Tokyo\" },\"subtitle\": { \"text\": \"Source: WorldClimate.com\" },\"xAxis\": [ { \"categories\": [ \"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\" ],\"crosshair\": true } ],\"yAxis\": [ { \"labels\": { \"format\": \"{value}°C\",\"style\": { \"color\": Highcharts.getOptions().colors[1] } },\"title\": { \"text\": \"Temperature\",\"style\": { \"color\": Highcharts.getOptions().colors[1] } } },{ \"title\": { \"text\": \"Rainfall\",\"style\": { \"color\": Highcharts.getOptions().colors[0] } },\"labels\": { \"format\": \"{value} mm\",\"style\": { \"color\": Highcharts.getOptions().colors[0] } },\"opposite\": true } ],\"tooltip\": { \"shared\": true },\"legend\": { \"layout\": \"vertical\",\"align\": \"left\",\"x\": 120,\"verticalAlign\": \"top\",\"y\": 100,\"floating\": true,\"backgroundColor\": (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF' },\"series\": [{ \"name\": \"Rainfall\",\"type\": \"column\",\"yAxis\": 1,\"data\": [ 49.9,71.5,106.4,129.2,144.0,176.0,135.6,148.5,216.4,194.1,95.6,54.4 ],\"tooltip\": { \"valueSuffix\": \" mm\" } },{ \"name\": \"Temperature\",\"type\": \"spline\",\"data\": [ 7.0,6.9,9.5,14.5,18.2,21.5,25.2,26.5,23.3,18.3,13.9,9.6 ],\"tooltip\": { \"valueSuffix\": \"°C\" } }] };\n", " \n", - " window.chart_npudyrwfjik = new Highcharts.Chart(options);\n", + " window.chart_nfjozxukmwy = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -1002,17 +1012,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1162,17 +1172,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, diff --git a/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb b/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb index 5dd3061..50a29a9 100644 --- a/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb +++ b/spec/dummy_iruby/Highcharts - Daynamic charts.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b' + this.series.name + '
' +\n", " Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '
' +\n", " Highcharts.numberFormat(this.y, 2);\n", @@ -900,15 +910,15 @@ " return data;\n", " }()) }] };\n", " \n", - " window.chart_vwjikptdfnz = new Highcharts.Chart(options);\n", + " window.chart_cgqnpydomxv = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -1029,21 +1039,21 @@ " // Add it\n", " series.addPoint([x, y]);\n", "\n", - " } },\"renderTo\": \"zgwtlrcohdu\" },\"title\": { \"text\": \"User supplied data\" },\"subtitle\": { \"text\": \"Click the plot area to add a point. Click a point to remove it.\" },\"xAxis\": { \"gridLineWidth\": 1,\"minPadding\": 0.2,\"maxPadding\": 0.2,\"maxZoom\": 60 },\"yAxis\": { \"title\": { \"text\": \"Value\" },\"minPadding\": 0.2,\"maxPadding\": 0.2,\"maxZoom\": 60,\"plotLines\": [ { \"value\": 0,\"width\": 1,\"color\": \"#808080\" } ] },\"legend\": { \"enabled\": false },\"exporting\": { \"enabled\": false },\"plotOptions\": { \"series\": { \"lineWidth\": 1,\"point\": { \"events\": { \"click\": function () {\n", + " } },\"renderTo\": \"vrgueqayphj\" },\"title\": { \"text\": \"User supplied data\" },\"subtitle\": { \"text\": \"Click the plot area to add a point. Click a point to remove it.\" },\"xAxis\": { \"gridLineWidth\": 1,\"minPadding\": 0.2,\"maxPadding\": 0.2,\"maxZoom\": 60 },\"yAxis\": { \"title\": { \"text\": \"Value\" },\"minPadding\": 0.2,\"maxPadding\": 0.2,\"maxZoom\": 60,\"plotLines\": [ { \"value\": 0,\"width\": 1,\"color\": \"#808080\" } ] },\"legend\": { \"enabled\": false },\"exporting\": { \"enabled\": false },\"plotOptions\": { \"series\": { \"lineWidth\": 1,\"point\": { \"events\": { \"click\": function () {\n", " if (this.series.data.length > 1) {\n", " this.remove();\n", " }\n", " } } } } },\"series\": [{ \"data\": [ [ 20,20 ],[ 80,80 ] ] }] };\n", " \n", - " window.chart_zgwtlrcohdu = new Highcharts.Chart(options);\n", + " window.chart_vrgueqayphj = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, diff --git a/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb b/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb index 85c4fdc..b3973e8 100644 --- a/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb +++ b/spec/dummy_iruby/Highcharts - More Chart Types (Using modules).ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bb&&(b=g.fromNode.column);a.column=b+1}c[a.column]||(c[a.column]=this.createNodeColumn());c[a.column].push(a)},this);return c},pointAttribs:function(c,a){var b=this.options.linkOpacity;a&&(b=this.options.states[a].linkOpacity||b);return{fill:c.isNode?c.color:d.color(c.color).setOpacity(b).get()}},generatePoints:function(){var c={};d.Series.prototype.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;f(this.nodes,function(a){a.linksFrom.length=\n", - "0;a.linksTo.length=0});f(this.points,function(a){k(a.from)&&(c[a.from]||(c[a.from]=this.createNode(a.from)),c[a.from].linksFrom.push(a),a.fromNode=c[a.from],a.color=a.options.color||c[a.from].color);k(a.to)&&(c[a.to]||(c[a.to]=this.createNode(a.to)),c[a.to].linksTo.push(a),a.toNode=c[a.to]);a.name=a.name||a.id},this)},translate:function(){this.processedXData||this.processData();this.generatePoints();this.nodeColumns=this.createNodeColumns();var c=this.chart,a=c.inverted,b=this.options,d=0,g=b.nodeWidth,\n", - "k=this.nodeColumns,r=(c.plotSizeX-g)/(k.length-1),t=(a?-r:r)*b.curveFactor,l=Infinity;f(this.nodeColumns,function(a){l=Math.min(l,(c.plotSizeY-(a.length-1)*b.nodePadding)/a.sum())});f(this.nodeColumns,function(b){f(b,function(e){var q=e.getSum(),u=q*l,v=b.top(l)+b.offset(e,l),m=a?c.plotSizeX-d:d;e.sum=q;e.shapeType=\"rect\";e.shapeArgs=a?{x:m-g,y:c.plotSizeY-v-u,width:g,height:u}:{x:m,y:v,width:g,height:u};e.shapeArgs.display=e.hasShape()?\"\":\"none\";e.plotY=1;f(e.linksFrom,function(b){var d=b.weight*\n", - "l,f=e.offset(b,\"linksFrom\")*l,f=v+f,h=b.toNode,n=k[h.column].top(l)+h.offset(b,\"linksTo\")*l+k[h.column].offset(h,l),p=g,h=h.column*r,q=b.outgoing;a&&(f=c.plotSizeY-f,n=c.plotSizeY-n,h=c.plotSizeX-h,p=-p,d=-d);b.shapeType=\"path\";b.shapeArgs={d:[\"M\",m+p,f,\"C\",m+p+t,f,h-t,n,h,n,\"L\",h+(q?p:0),n+d/2,\"L\",h,n+d,\"C\",h-t,n+d,m+p+t,f+d,m+p,f+d,\"z\"]};b.dlBox={x:m+(h-m+p)/2,y:f+(n-f)/2,height:d,width:0};b.y=b.plotY=1;b.color||(b.color=e.color)})});d+=r},this)},render:function(){var c=this.points;this.points=\n", - "this.points.concat(this.nodes);d.seriesTypes.column.prototype.render.call(this);this.points=c},animate:d.Series.prototype.animate},{getClassName:function(){return\"highcharts-link \"+q.prototype.getClassName.call(this)},isValid:function(){return this.isNode||\"number\"===typeof this.weight}})})(k)});\n", + "(function(m){\"object\"===typeof module&&module.exports?module.exports=m:m(Highcharts)})(function(m){(function(e){var m=e.defined,f=e.each,N=e.extend,O=e.seriesType,n=e.Point;O(\"sankey\",\"column\",{colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:\"none\",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){return\"\"},inside:!0},linkOpacity:.5,nodeWidth:20,nodePadding:10,showInLegend:!1,states:{hover:{linkOpacity:1}},tooltip:{followPointer:!0,\n", + "headerFormat:'\\x3cspan style\\x3d\"font-size: 0.85em\"\\x3e{series.name}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:\"{point.fromNode.name} \\u2192 {point.toNode.name}: \\x3cb\\x3e{point.weight}\\x3c/b\\x3e\\x3cbr/\\x3e\",nodeFormat:\"{point.name}: \\x3cb\\x3e{point.sum}\\x3c/b\\x3e\\x3cbr/\\x3e\"}},{isCartesian:!1,forceDL:!0,createNode:function(b){function a(a,b){return e.find(a,function(a){return a.id===b})}var c=a(this.nodes,b),d;c||(d=this.options.nodes&&a(this.options.nodes,b),c=(new n).init(this,N({className:\"highcharts-node\",\n", + "isNode:!0,id:b,y:1},d)),c.linksTo=[],c.linksFrom=[],c.formatPrefix=\"node\",c.name=c.name||c.id,c.getSum=function(){var a=0,b=0;f(c.linksTo,function(b){a+=b.weight});f(c.linksFrom,function(a){b+=a.weight});return Math.max(a,b)},c.offset=function(a,b){for(var h=0,d=0;dc&&(c=h.fromNode.column);a.column=c+1}b[a.column]||(b[a.column]=this.createNodeColumn());b[a.column].push(a)},this);return b},pointAttribs:function(b,a){var c=this.options.linkOpacity;a&&(c=this.options.states[a].linkOpacity||c);return{fill:b.isNode?b.color:e.color(b.color).setOpacity(c).get()}},generatePoints:function(){var b={};e.Series.prototype.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;f(this.nodes,function(a){a.linksFrom.length=\n", + "0;a.linksTo.length=0});f(this.points,function(a){m(a.from)&&(b[a.from]||(b[a.from]=this.createNode(a.from)),b[a.from].linksFrom.push(a),a.fromNode=b[a.from],a.color=a.options.color||b[a.from].color);m(a.to)&&(b[a.to]||(b[a.to]=this.createNode(a.to)),b[a.to].linksTo.push(a),a.toNode=b[a.to]);a.name=a.name||a.id},this)},translate:function(){this.processedXData||this.processData();this.generatePoints();this.nodeColumns=this.createNodeColumns();var b=this.chart,a=b.inverted,c=this.options,e=0,h=c.nodeWidth,\n", + "m=this.nodeColumns,C=(b.plotSizeX-h)/(m.length-1),D=(a?-C:C)*c.curveFactor,p=Infinity;f(this.nodeColumns,function(a){p=Math.min(p,(b.plotSizeY-(a.length-1)*c.nodePadding)/a.sum())});f(this.nodeColumns,function(c){f(c,function(d){var n=d.getSum(),v=n*p,G=c.top(p)+c.offset(d,p),q=a?b.plotSizeX-e:e;d.sum=n;d.shapeType=\"rect\";d.shapeArgs=a?{x:q-h,y:b.plotSizeY-G-v,width:h,height:v}:{x:q,y:G,width:h,height:v};d.shapeArgs.display=d.hasShape()?\"\":\"none\";d.plotY=1;f(d.linksFrom,function(c){var g=c.weight*\n", + "p,l=d.offset(c,\"linksFrom\")*p,l=G+l,k=c.toNode,f=m[k.column].top(p)+k.offset(c,\"linksTo\")*p+m[k.column].offset(k,p),r=h,k=k.column*C,w=c.outgoing;a&&(l=b.plotSizeY-l,f=b.plotSizeY-f,k=b.plotSizeX-k,r=-r,g=-g);c.shapeType=\"path\";if(k>e)c.shapeArgs={d:[\"M\",q+r,l,\"C\",q+r+D,l,k-D,f,k,f,\"L\",k+(w?r:0),f+g/2,\"L\",k,f+g,\"C\",k-D,f+g,q+r+D,l+g,q+r,l+g,\"z\"]};else{var w=k-20-g,x=k-20,n=k,y=q+r,u=y+20,E=u+g,v=l,z=l+g,H=z+20,A=H+(b.plotHeight-l-g),t=A+20,F=t+g,I=f,B=I+g,J=B+20,K=t+.7*g,L=n-.7*g,M=y+.7*g;c.shapeArgs=\n", + "{d:[\"M\",y,v,\"C\",M,v,E,z-.7*g,E,H,\"L\",E,A,\"C\",E,K,M,F,y,F,\"L\",n,F,\"C\",L,F,w,K,w,A,\"L\",w,J,\"C\",w,B-.7*g,L,I,n,I,\"L\",n,B,\"C\",x,B,x,B,x,J,\"L\",x,A,\"C\",x,t,x,t,n,t,\"L\",y,t,\"C\",u,t,u,t,u,A,\"L\",u,H,\"C\",u,z,u,z,y,z,\"z\"]}}c.dlBox={x:q+(k-q+r)/2,y:l+(f-l)/2,height:g,width:0};c.y=c.plotY=1;c.color||(c.color=d.color)})});e+=C},this)},render:function(){var b=this.points;this.points=this.points.concat(this.nodes);e.seriesTypes.column.prototype.render.call(this);this.points=b},animate:e.Series.prototype.animate},\n", + "{getClassName:function(){return\"highcharts-link \"+n.prototype.getClassName.call(this)},isValid:function(){return this.isNode||\"number\"===typeof this.weight}})})(m)});\n", "\n", " /* END modules/sankey.js*/\n", "\n", @@ -882,7 +893,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/sankey.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Sankey diagram module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(k){\\\"object\\\"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(d){var k=d.defined,f=d.each,w=d.extend,x=d.seriesType,q=d.Point;x(\\\"sankey\\\",\\\"column\\\",{colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:\\\"none\\\",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){return\\\"\\\"},inside:!0},linkOpacity:.5,nodeWidth:20,nodePadding:10,showInLegend:!1,states:{hover:{linkOpacity:1}},tooltip:{followPointer:!0,\\nheaderFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 0.85em\\\"\\\\x3e{series.name}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:\\\"{point.fromNode.name} \\\\u2192 {point.toNode.name}: \\\\x3cb\\\\x3e{point.weight}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\",nodeFormat:\\\"{point.name}: \\\\x3cb\\\\x3e{point.sum}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\"}},{isCartesian:!1,forceDL:!0,createNode:function(c){function a(a,b){return d.find(a,function(a){return a.id===b})}var b=a(this.nodes,c),e;b||(e=this.options.nodes&&a(this.options.nodes,c),b=(new q).init(this,w({className:\\\"highcharts-node\\\",\\nisNode:!0,id:c,y:1},e)),b.linksTo=[],b.linksFrom=[],b.formatPrefix=\\\"node\\\",b.name=b.name||b.id,b.getSum=function(){var a=0,c=0;f(b.linksTo,function(c){a+=c.weight});f(b.linksFrom,function(a){c+=a.weight});return Math.max(a,c)},b.offset=function(a,c){for(var g=0,e=0;eb&&(b=g.fromNode.column);a.column=b+1}c[a.column]||(c[a.column]=this.createNodeColumn());c[a.column].push(a)},this);return c},pointAttribs:function(c,a){var b=this.options.linkOpacity;a&&(b=this.options.states[a].linkOpacity||b);return{fill:c.isNode?c.color:d.color(c.color).setOpacity(b).get()}},generatePoints:function(){var c={};d.Series.prototype.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;f(this.nodes,function(a){a.linksFrom.length=\\n0;a.linksTo.length=0});f(this.points,function(a){k(a.from)&&(c[a.from]||(c[a.from]=this.createNode(a.from)),c[a.from].linksFrom.push(a),a.fromNode=c[a.from],a.color=a.options.color||c[a.from].color);k(a.to)&&(c[a.to]||(c[a.to]=this.createNode(a.to)),c[a.to].linksTo.push(a),a.toNode=c[a.to]);a.name=a.name||a.id},this)},translate:function(){this.processedXData||this.processData();this.generatePoints();this.nodeColumns=this.createNodeColumns();var c=this.chart,a=c.inverted,b=this.options,d=0,g=b.nodeWidth,\\nk=this.nodeColumns,r=(c.plotSizeX-g)/(k.length-1),t=(a?-r:r)*b.curveFactor,l=Infinity;f(this.nodeColumns,function(a){l=Math.min(l,(c.plotSizeY-(a.length-1)*b.nodePadding)/a.sum())});f(this.nodeColumns,function(b){f(b,function(e){var q=e.getSum(),u=q*l,v=b.top(l)+b.offset(e,l),m=a?c.plotSizeX-d:d;e.sum=q;e.shapeType=\\\"rect\\\";e.shapeArgs=a?{x:m-g,y:c.plotSizeY-v-u,width:g,height:u}:{x:m,y:v,width:g,height:u};e.shapeArgs.display=e.hasShape()?\\\"\\\":\\\"none\\\";e.plotY=1;f(e.linksFrom,function(b){var d=b.weight*\\nl,f=e.offset(b,\\\"linksFrom\\\")*l,f=v+f,h=b.toNode,n=k[h.column].top(l)+h.offset(b,\\\"linksTo\\\")*l+k[h.column].offset(h,l),p=g,h=h.column*r,q=b.outgoing;a&&(f=c.plotSizeY-f,n=c.plotSizeY-n,h=c.plotSizeX-h,p=-p,d=-d);b.shapeType=\\\"path\\\";b.shapeArgs={d:[\\\"M\\\",m+p,f,\\\"C\\\",m+p+t,f,h-t,n,h,n,\\\"L\\\",h+(q?p:0),n+d/2,\\\"L\\\",h,n+d,\\\"C\\\",h-t,n+d,m+p+t,f+d,m+p,f+d,\\\"z\\\"]};b.dlBox={x:m+(h-m+p)/2,y:f+(n-f)/2,height:d,width:0};b.y=b.plotY=1;b.color||(b.color=e.color)})});d+=r},this)},render:function(){var c=this.points;this.points=\\nthis.points.concat(this.nodes);d.seriesTypes.column.prototype.render.call(this);this.points=c},animate:d.Series.prototype.animate},{getClassName:function(){return\\\"highcharts-link \\\"+q.prototype.getClassName.call(this)},isValid:function(){return this.isNode||\\\"number\\\"===typeof this.weight}})})(k)});\\n\\n /* END modules/sankey.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/sankey.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Sankey diagram module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(m){\\\"object\\\"===typeof module&&module.exports?module.exports=m:m(Highcharts)})(function(m){(function(e){var m=e.defined,f=e.each,N=e.extend,O=e.seriesType,n=e.Point;O(\\\"sankey\\\",\\\"column\\\",{colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:\\\"none\\\",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){return\\\"\\\"},inside:!0},linkOpacity:.5,nodeWidth:20,nodePadding:10,showInLegend:!1,states:{hover:{linkOpacity:1}},tooltip:{followPointer:!0,\\nheaderFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 0.85em\\\"\\\\x3e{series.name}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:\\\"{point.fromNode.name} \\\\u2192 {point.toNode.name}: \\\\x3cb\\\\x3e{point.weight}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\",nodeFormat:\\\"{point.name}: \\\\x3cb\\\\x3e{point.sum}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\"}},{isCartesian:!1,forceDL:!0,createNode:function(b){function a(a,b){return e.find(a,function(a){return a.id===b})}var c=a(this.nodes,b),d;c||(d=this.options.nodes&&a(this.options.nodes,b),c=(new n).init(this,N({className:\\\"highcharts-node\\\",\\nisNode:!0,id:b,y:1},d)),c.linksTo=[],c.linksFrom=[],c.formatPrefix=\\\"node\\\",c.name=c.name||c.id,c.getSum=function(){var a=0,b=0;f(c.linksTo,function(b){a+=b.weight});f(c.linksFrom,function(a){b+=a.weight});return Math.max(a,b)},c.offset=function(a,b){for(var h=0,d=0;dc&&(c=h.fromNode.column);a.column=c+1}b[a.column]||(b[a.column]=this.createNodeColumn());b[a.column].push(a)},this);return b},pointAttribs:function(b,a){var c=this.options.linkOpacity;a&&(c=this.options.states[a].linkOpacity||c);return{fill:b.isNode?b.color:e.color(b.color).setOpacity(c).get()}},generatePoints:function(){var b={};e.Series.prototype.generatePoints.call(this);this.nodes||(this.nodes=[]);this.colorCounter=0;f(this.nodes,function(a){a.linksFrom.length=\\n0;a.linksTo.length=0});f(this.points,function(a){m(a.from)&&(b[a.from]||(b[a.from]=this.createNode(a.from)),b[a.from].linksFrom.push(a),a.fromNode=b[a.from],a.color=a.options.color||b[a.from].color);m(a.to)&&(b[a.to]||(b[a.to]=this.createNode(a.to)),b[a.to].linksTo.push(a),a.toNode=b[a.to]);a.name=a.name||a.id},this)},translate:function(){this.processedXData||this.processData();this.generatePoints();this.nodeColumns=this.createNodeColumns();var b=this.chart,a=b.inverted,c=this.options,e=0,h=c.nodeWidth,\\nm=this.nodeColumns,C=(b.plotSizeX-h)/(m.length-1),D=(a?-C:C)*c.curveFactor,p=Infinity;f(this.nodeColumns,function(a){p=Math.min(p,(b.plotSizeY-(a.length-1)*c.nodePadding)/a.sum())});f(this.nodeColumns,function(c){f(c,function(d){var n=d.getSum(),v=n*p,G=c.top(p)+c.offset(d,p),q=a?b.plotSizeX-e:e;d.sum=n;d.shapeType=\\\"rect\\\";d.shapeArgs=a?{x:q-h,y:b.plotSizeY-G-v,width:h,height:v}:{x:q,y:G,width:h,height:v};d.shapeArgs.display=d.hasShape()?\\\"\\\":\\\"none\\\";d.plotY=1;f(d.linksFrom,function(c){var g=c.weight*\\np,l=d.offset(c,\\\"linksFrom\\\")*p,l=G+l,k=c.toNode,f=m[k.column].top(p)+k.offset(c,\\\"linksTo\\\")*p+m[k.column].offset(k,p),r=h,k=k.column*C,w=c.outgoing;a&&(l=b.plotSizeY-l,f=b.plotSizeY-f,k=b.plotSizeX-k,r=-r,g=-g);c.shapeType=\\\"path\\\";if(k>e)c.shapeArgs={d:[\\\"M\\\",q+r,l,\\\"C\\\",q+r+D,l,k-D,f,k,f,\\\"L\\\",k+(w?r:0),f+g/2,\\\"L\\\",k,f+g,\\\"C\\\",k-D,f+g,q+r+D,l+g,q+r,l+g,\\\"z\\\"]};else{var w=k-20-g,x=k-20,n=k,y=q+r,u=y+20,E=u+g,v=l,z=l+g,H=z+20,A=H+(b.plotHeight-l-g),t=A+20,F=t+g,I=f,B=I+g,J=B+20,K=t+.7*g,L=n-.7*g,M=y+.7*g;c.shapeArgs=\\n{d:[\\\"M\\\",y,v,\\\"C\\\",M,v,E,z-.7*g,E,H,\\\"L\\\",E,A,\\\"C\\\",E,K,M,F,y,F,\\\"L\\\",n,F,\\\"C\\\",L,F,w,K,w,A,\\\"L\\\",w,J,\\\"C\\\",w,B-.7*g,L,I,n,I,\\\"L\\\",n,B,\\\"C\\\",x,B,x,B,x,J,\\\"L\\\",x,A,\\\"C\\\",x,t,x,t,n,t,\\\"L\\\",y,t,\\\"C\\\",u,t,u,t,u,A,\\\"L\\\",u,H,\\\"C\\\",u,z,u,z,y,z,\\\"z\\\"]}}c.dlBox={x:q+(k-q+r)/2,y:l+(f-l)/2,height:g,width:0};c.y=c.plotY=1;c.color||(c.color=d.color)})});e+=C},this)},render:function(){var b=this.points;this.points=this.points.concat(this.nodes);e.seriesTypes.column.prototype.render.call(this);this.points=b},animate:e.Series.prototype.animate},\\n{getClassName:function(){return\\\"highcharts-link \\\"+n.prototype.getClassName.call(this)},isValid:function(){return this.isNode||\\\"number\\\"===typeof this.weight}})})(m)});\\n\\n /* END modules/sankey.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -894,17 +905,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -917,7 +928,6 @@ " title: {\n", " text: 'Highcharts Sankey Diagram'\n", " },\n", - " modules: ['modules/sankey'],\n", " chart: {\n", " type: 'sankey'\n", " },\n", @@ -985,7 +995,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(df, opts)\n", + "chart = Daru::View::Plot.new(df, opts, modules: ['modules/sankey'])\n", "chart.show_in_iruby" ] }, @@ -1001,7 +1011,7 @@ " /* BEGIN modules/histogram-bellcurve.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2010-2017 Highsoft AS\n", " Author: Sebastian Domas\n", @@ -1025,7 +1035,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/histogram-bellcurve.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n (c) 2010-2017 Highsoft AS\\n Author: Sebastian Domas\\n\\n License: www.highcharts.com/license\\n*/\\n(function(d){\\\"object\\\"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){var u=function(a){var d=a.each,f=a.Series,h=a.addEvent;return{init:function(){f.prototype.init.apply(this,arguments);this.initialised=!1;this.baseSeries=null;this.eventRemovers=[];this.addEvents()},setDerivedData:a.noop,setBaseSeries:function(){var k=this.chart,a=this.options.baseSeries;this.baseSeries=a&&(k.series[a]||k.get(a))||null},addEvents:function(){var a=this,e;e=h(this.chart,\\\"afterLinkSeries\\\",\\nfunction(){a.setBaseSeries();a.baseSeries&&!a.initialised&&(a.setDerivedData(),a.addBaseSeriesEvents(),a.initialised=!0)});this.eventRemovers.push(e)},addBaseSeriesEvents:function(){var a=this,e,d;e=h(a.baseSeries,\\\"updatedData\\\",function(){a.setDerivedData()});d=h(a.baseSeries,\\\"destroy\\\",function(){a.baseSeries=null;a.initialised=!1});a.eventRemovers.push(e,d)},destroy:function(){d(this.eventRemovers,function(a){a()});f.prototype.destroy.apply(this,arguments)}}}(d);(function(a,d){function f(a){return function(b){return Math.floor(b/\\na)*a}}function h(a){return a}var k=a.each,e=a.objectEach,g=a.seriesType,m=a.correctFloat,n=a.isNumber,p=a.arrayMax,q=a.arrayMin;a=a.merge;var c={\\\"square-root\\\":function(a){return Math.round(Math.sqrt(a.options.data.length))},sturges:function(a){return Math.ceil(Math.log(a.options.data.length)*Math.LOG2E)},rice:function(a){return Math.ceil(2*Math.pow(a.options.data.length,1/3))}};g(\\\"histogram\\\",\\\"column\\\",{binsNumber:\\\"square-root\\\",binWidth:void 0,pointPadding:0,groupPadding:0,grouping:!1,pointPlacement:\\\"between\\\",\\ntooltip:{headerFormat:\\\"\\\",pointFormat:'\\\\x3cspan style\\\\x3d\\\"font-size:10px\\\"\\\\x3e{point.x} - {point.x2}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name} \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'}},a(d,{setDerivedData:function(){var a=this.derivedData(this.baseSeries.yData,this.binsNumber(),this.options.binWidth);this.setData(a,!1)},derivedData:function(a,l,c){var b=p(a),d=q(a),t={},g=[],r;r=(c=this.binWidth=n(c)?c:(b-d)/l)?f(c):h;for(l=r(d);l<=b;l=m(l+\\n(c||1)))t[m(r(l))]=0;k(a,function(a){a=m(r(a));t[a]++});e(t,function(a,b){g.push({x:Number(b),y:a,x2:m(Number(b)+c)})});g.sort(function(a,b){return a.x-b.x});return g},binsNumber:function(){var a=this.options.binsNumber,q=c[a]||\\\"function\\\"===typeof a&&a;return Math.ceil(q&&q(this.baseSeries)||(n(a)?a:c[\\\"square-root\\\"](this.baseSeries)))}}))})(d,u);(function(a,d){function f(a){var c=a.length;a=p(a,function(a,c){return a+c},0);return 0\n", " $(function() {\n", "\n", - " var options = { \"title\": { \"text\": \"Bell curve\" },\"chart\": { \"type\": \"bellcurve\",\"renderTo\": \"hmfdvabjces\" },\"xAxis\": [ { \"title\": { \"text\": \"Data\" },\"alignTicks\": false },{ \"title\": { \"text\": \"Bell curve\" },\"alignTicks\": false,\"opposite\": true } ],\"yAxis\": [ { \"title\": { \"text\": \"Data\" } },{ \"title\": { \"text\": \"Bell curve\" },\"opposite\": true } ],\"series\": [{ \"type\": null,\"name\": null,\"data\": [ 3.5,3,3.2,3.1,3.6,3.9,3.4,3.4,2.9,3.1,3.7,3.4,3,3,4,4.4,3.9,3.5,3.8,3.8,3.4,3.7,3.6,3.3,3.4,3,3.4,3.5,3.4,3.2,3.1,3.4,4.1,4.2,3.1,3.2,3.5,3.6,3,3.4,3.5,2.3,3.2,3.5,3.8,3,3.8,3.2,3.7,3.3,3.2,3.2,3.1,2.3,2.8,2.8,3.3,2.4,2.9,2.7,2,3,2.2,2.9,2.9,3.1,3,2.7,2.2,2.5,3.2,2.8,2.5,2.8,2.9,3,2.8,3,2.9,2.6,2.4,2.4,2.7,2.7,3,3.4,3.1,2.3,3,2.5,2.6,3,2.6,2.3,2.7,3,2.9,2.9,2.5,2.8,3.3,2.7,3,2.9,3,3,2.5,2.9,2.5,3.6,3.2,2.7,3,2.5,2.8,3.2,3,3.8,2.6,2.2,3.2,2.8,2.8,2.7,3.3,3.2,2.8,3,2.8,3,2.8,3.8,2.8,2.8,2.6,3,3.4,3.1,3,3.1,3.1,3.1,2.7,3.2,3.3,3,2.5,3,3.4,3 ] }] };\n", + " var options = { \"title\": { \"text\": \"Bell curve\" },\"chart\": { \"type\": \"bellcurve\",\"renderTo\": \"cqjbypgnlfi\" },\"xAxis\": [ { \"title\": { \"text\": \"Data\" },\"alignTicks\": false },{ \"title\": { \"text\": \"Bell curve\" },\"alignTicks\": false,\"opposite\": true } ],\"yAxis\": [ { \"title\": { \"text\": \"Data\" } },{ \"title\": { \"text\": \"Bell curve\" },\"opposite\": true } ],\"series\": [{ \"type\": null,\"name\": null,\"data\": [ 3.5,3,3.2,3.1,3.6,3.9,3.4,3.4,2.9,3.1,3.7,3.4,3,3,4,4.4,3.9,3.5,3.8,3.8,3.4,3.7,3.6,3.3,3.4,3,3.4,3.5,3.4,3.2,3.1,3.4,4.1,4.2,3.1,3.2,3.5,3.6,3,3.4,3.5,2.3,3.2,3.5,3.8,3,3.8,3.2,3.7,3.3,3.2,3.2,3.1,2.3,2.8,2.8,3.3,2.4,2.9,2.7,2,3,2.2,2.9,2.9,3.1,3,2.7,2.2,2.5,3.2,2.8,2.5,2.8,2.9,3,2.8,3,2.9,2.6,2.4,2.4,2.7,2.7,3,3.4,3.1,2.3,3,2.5,2.6,3,2.6,2.3,2.7,3,2.9,2.9,2.5,2.8,3.3,2.7,3,2.9,3,3,2.5,2.9,2.5,3.6,3.2,2.7,3,2.5,2.8,3.2,3,3.8,2.6,2.2,3.2,2.8,2.8,2.7,3.3,3.2,2.8,3,2.8,3,2.8,3.8,2.8,2.8,2.6,3,3.4,3.1,3,3.1,3.1,3.1,2.7,3.2,3.3,3,2.5,3,3.4,3 ] }] };\n", " \n", - " window.chart_hmfdvabjces = new Highcharts.Chart(options);\n", + " window.chart_cqjbypgnlfi = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1060,9 +1070,6 @@ " title: {\n", " text: 'Bell curve'\n", " },\n", - " \n", - " modules: ['modules/histogram-bellcurve'],\n", - " \n", " chart: {\n", " type: 'bellcurve'\n", " },\n", @@ -1099,7 +1106,7 @@ " 2.8, 3, 2.8, 3, 2.8, 3.8, 2.8, 2.8, 2.6, 3, 3.4, 3.1, 3, 3.1, 3.1, 3.1, 2.7,\n", " 3.2, 3.3, 3, 2.5, 3, 3.4, 3])\n", "\n", - "chart = Daru::View::Plot.new(dv, opts)\n", + "chart = Daru::View::Plot.new(dv, opts, modules: ['modules/histogram-bellcurve'])\n", "chart.show_in_iruby" ] }, @@ -1115,7 +1122,7 @@ " /* BEGIN modules/funnel.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Highcharts funnel module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", @@ -1124,7 +1131,7 @@ "*/\n", "(function(e){\"object\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\"funnel\",\"pie\",{animation:!1,center:[\"50%\",\"50%\"],width:\"90%\",neckWidth:\"30%\",height:\"100%\",neckHeight:\"25%\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\"#cccccc\",borderColor:\"#000000\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\n", "0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\"left\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\n", - "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\"M\",B,n,\"L\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", + "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\"M\",B,n,\"L\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", "c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\"right\":\"left\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\"pyramid\",\"funnel\",{neckWidth:\"0%\",\n", "neckHeight:\"0%\",reversed:!0})})(e)});\n", "\n", @@ -1137,7 +1144,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1149,17 +1156,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1172,7 +1179,6 @@ " chart: {\n", " type: 'funnel'\n", " },\n", - " modules: ['modules/funnel'],\n", " title: {\n", " text: 'Sales funnel'\n", " },\n", @@ -1202,7 +1208,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(df, opts)\n", + "chart = Daru::View::Plot.new(df, opts, modules: ['modules/funnel'])\n", "chart.show_in_iruby" ] }, @@ -1234,17 +1240,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1300,17 +1306,18 @@ " /* BEGIN modules/variwide.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Highcharts variwide module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(c){\"object\"===typeof module&&module.exports?module.exports=c:c(Highcharts)})(function(c){(function(b){var c=b.addEvent,n=b.seriesType,g=b.seriesTypes,k=b.each,m=b.pick;n(\"variwide\",\"column\",{pointPadding:0,groupPadding:0},{pointArrayMap:[\"y\",\"z\"],parallelArrays:[\"x\",\"y\",\"z\"],processData:function(){var a=this;this.totalZ=0;this.relZ=[];g.column.prototype.processData.call(this);k(this.zData,function(e,d){a.relZ[d]=a.totalZ;a.totalZ+=e});this.xAxis.categories&&(this.xAxis.variwide=!0)},postTranslate:function(a,\n", - "e){var d=this.relZ,h=this.xAxis.len,b=this.totalZ,l=a/d.length*h,f=(a+1)/d.length*h,c=m(d[a],b)/b*h;a=m(d[a+1],b)/b*h;return c+(e-l)*(a-c)/(f-l)},translate:function(){var a=this.options.crisp;this.options.crisp=!1;g.column.prototype.translate.call(this);this.options.crisp=a;var b=this.chart.inverted,d=this.borderWidth%2/2;k(this.points,function(a,e){var c=this.postTranslate(e,a.shapeArgs.x),f=this.postTranslate(e,a.shapeArgs.x+a.shapeArgs.width);this.options.crisp&&(c=Math.round(c)-d,f=Math.round(f)-\n", - "d);a.shapeArgs.x=c;a.shapeArgs.width=f-c;a.plotX=(c+f)/2;a.crosshairWidth=f-c;a.tooltipPos[b?1:0]=this.postTranslate(e,a.tooltipPos[b?1:0])},this)}},{isValid:function(){return b.isNumber(this.y,!0)&&b.isNumber(this.z,!0)}});b.Tick.prototype.postTranslate=function(a,b,c){a[b]=this.axis.pos+this.axis.series[0].postTranslate(c,a[b]-this.axis.pos)};c(b.Axis,\"afterDrawCrosshair\",function(a){this.variwide&&this.cross.attr(\"stroke-width\",a.point&&a.point.shapeArgs.width)});c(b.Tick,\"afterGetPosition\",function(a){var b=\n", - "this.axis,c=b.horiz?\"x\":\"y\";b.categories&&b.variwide&&(this[c+\"Orig\"]=a.pos[c],this.postTranslate(a.pos,c,this.pos))});b.wrap(b.Tick.prototype,\"getLabelPosition\",function(a,b,c,h,g,l,f,k){var d=Array.prototype.slice.call(arguments,1),e=g?\"x\":\"y\";this.axis.variwide&&\"number\"===typeof this[e+\"Orig\"]&&(d[g?0:1]=this[e+\"Orig\"]);d=a.apply(this,d);this.axis.variwide&&this.axis.categories&&this.postTranslate(d,e,k);return d})})(c)});\n", + "(function(c){\"object\"===typeof module&&module.exports?module.exports=c:c(Highcharts)})(function(c){(function(b){var c=b.addEvent,p=b.seriesType,l=b.seriesTypes,k=b.each,n=b.pick;p(\"variwide\",\"column\",{pointPadding:0,groupPadding:0},{pointArrayMap:[\"y\",\"z\"],parallelArrays:[\"x\",\"y\",\"z\"],processData:function(){this.totalZ=0;this.relZ=[];l.column.prototype.processData.call(this);k(this.xAxis.reversed?this.zData.slice().reverse():this.zData,function(a,g){this.relZ[g]=this.totalZ;this.totalZ+=a},this);\n", + "this.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=this.zData)},postTranslate:function(a,g,b){var d=this.xAxis,e=this.relZ;a=d.reversed?e.length-a:a;var m=d.reversed?-1:1,h=d.len,c=this.totalZ,d=a/e.length*h,q=(a+m)/e.length*h,f=n(e[a],c)/c*h,e=n(e[a+m],c)/c*h;b&&(b.crosshairWidth=e-f);return f+(g-d)*(e-f)/(q-d)},translate:function(){var a=this.options.crisp;this.options.crisp=!1;l.column.prototype.translate.call(this);this.options.crisp=a;var g=this.chart.inverted,b=this.borderWidth%\n", + "2/2;k(this.points,function(d,a){var e=this.postTranslate(a,d.shapeArgs.x,d),c=this.postTranslate(a,d.shapeArgs.x+d.shapeArgs.width);this.options.crisp&&(e=Math.round(e)-b,c=Math.round(c)-b);d.shapeArgs.x=e;d.shapeArgs.width=c-e;d.plotX=(e+c)/2;g?d.tooltipPos[1]=this.xAxis.len-this.postTranslate(a,this.xAxis.len-d.tooltipPos[1]):d.tooltipPos[0]=this.postTranslate(a,d.tooltipPos[0])},this)}},{isValid:function(){return b.isNumber(this.y,!0)&&b.isNumber(this.z,!0)}});b.Tick.prototype.postTranslate=function(a,\n", + "b,c){var d=this.axis,e=a[b]-d.pos;d.horiz||(e=d.len-e);e=d.series[0].postTranslate(c,e);d.horiz||(e=d.len-e);a[b]=d.pos+e};c(b.Axis,\"afterDrawCrosshair\",function(a){this.variwide&&this.cross&&this.cross.attr(\"stroke-width\",a.point&&a.point.crosshairWidth)});c(b.Axis,\"afterRender\",function(){var a=this;!this.horiz&&this.variwide&&this.chart.labelCollectors.push(function(){return b.map(a.tickPositions,function(b,c){b=a.ticks[b].label;b.labelrank=a.zData[c];return b})})});c(b.Tick,\"afterGetPosition\",\n", + "function(a){var b=this.axis,c=b.horiz?\"x\":\"y\";b.categories&&b.variwide&&(this[c+\"Orig\"]=a.pos[c],this.postTranslate(a.pos,c,this.pos))});b.wrap(b.Tick.prototype,\"getLabelPosition\",function(b,c,m,d,e,l,h,k){var a=Array.prototype.slice.call(arguments,1),f=e?\"x\":\"y\";this.axis.variwide&&\"number\"===typeof this[f+\"Orig\"]&&(a[e?0:1]=this[f+\"Orig\"]);a=b.apply(this,a);this.axis.variwide&&this.axis.categories&&this.postTranslate(a,f,k);return a})})(c)});\n", "\n", " /* END modules/variwide.js*/\n", "\n", @@ -1321,7 +1328,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/variwide.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Highcharts variwide module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(c){\\\"object\\\"===typeof module&&module.exports?module.exports=c:c(Highcharts)})(function(c){(function(b){var c=b.addEvent,n=b.seriesType,g=b.seriesTypes,k=b.each,m=b.pick;n(\\\"variwide\\\",\\\"column\\\",{pointPadding:0,groupPadding:0},{pointArrayMap:[\\\"y\\\",\\\"z\\\"],parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"z\\\"],processData:function(){var a=this;this.totalZ=0;this.relZ=[];g.column.prototype.processData.call(this);k(this.zData,function(e,d){a.relZ[d]=a.totalZ;a.totalZ+=e});this.xAxis.categories&&(this.xAxis.variwide=!0)},postTranslate:function(a,\\ne){var d=this.relZ,h=this.xAxis.len,b=this.totalZ,l=a/d.length*h,f=(a+1)/d.length*h,c=m(d[a],b)/b*h;a=m(d[a+1],b)/b*h;return c+(e-l)*(a-c)/(f-l)},translate:function(){var a=this.options.crisp;this.options.crisp=!1;g.column.prototype.translate.call(this);this.options.crisp=a;var b=this.chart.inverted,d=this.borderWidth%2/2;k(this.points,function(a,e){var c=this.postTranslate(e,a.shapeArgs.x),f=this.postTranslate(e,a.shapeArgs.x+a.shapeArgs.width);this.options.crisp&&(c=Math.round(c)-d,f=Math.round(f)-\\nd);a.shapeArgs.x=c;a.shapeArgs.width=f-c;a.plotX=(c+f)/2;a.crosshairWidth=f-c;a.tooltipPos[b?1:0]=this.postTranslate(e,a.tooltipPos[b?1:0])},this)}},{isValid:function(){return b.isNumber(this.y,!0)&&b.isNumber(this.z,!0)}});b.Tick.prototype.postTranslate=function(a,b,c){a[b]=this.axis.pos+this.axis.series[0].postTranslate(c,a[b]-this.axis.pos)};c(b.Axis,\\\"afterDrawCrosshair\\\",function(a){this.variwide&&this.cross.attr(\\\"stroke-width\\\",a.point&&a.point.shapeArgs.width)});c(b.Tick,\\\"afterGetPosition\\\",function(a){var b=\\nthis.axis,c=b.horiz?\\\"x\\\":\\\"y\\\";b.categories&&b.variwide&&(this[c+\\\"Orig\\\"]=a.pos[c],this.postTranslate(a.pos,c,this.pos))});b.wrap(b.Tick.prototype,\\\"getLabelPosition\\\",function(a,b,c,h,g,l,f,k){var d=Array.prototype.slice.call(arguments,1),e=g?\\\"x\\\":\\\"y\\\";this.axis.variwide&&\\\"number\\\"===typeof this[e+\\\"Orig\\\"]&&(d[g?0:1]=this[e+\\\"Orig\\\"]);d=a.apply(this,d);this.axis.variwide&&this.axis.categories&&this.postTranslate(d,e,k);return d})})(c)});\\n\\n /* END modules/variwide.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/variwide.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Highcharts variwide module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(c){\\\"object\\\"===typeof module&&module.exports?module.exports=c:c(Highcharts)})(function(c){(function(b){var c=b.addEvent,p=b.seriesType,l=b.seriesTypes,k=b.each,n=b.pick;p(\\\"variwide\\\",\\\"column\\\",{pointPadding:0,groupPadding:0},{pointArrayMap:[\\\"y\\\",\\\"z\\\"],parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"z\\\"],processData:function(){this.totalZ=0;this.relZ=[];l.column.prototype.processData.call(this);k(this.xAxis.reversed?this.zData.slice().reverse():this.zData,function(a,g){this.relZ[g]=this.totalZ;this.totalZ+=a},this);\\nthis.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=this.zData)},postTranslate:function(a,g,b){var d=this.xAxis,e=this.relZ;a=d.reversed?e.length-a:a;var m=d.reversed?-1:1,h=d.len,c=this.totalZ,d=a/e.length*h,q=(a+m)/e.length*h,f=n(e[a],c)/c*h,e=n(e[a+m],c)/c*h;b&&(b.crosshairWidth=e-f);return f+(g-d)*(e-f)/(q-d)},translate:function(){var a=this.options.crisp;this.options.crisp=!1;l.column.prototype.translate.call(this);this.options.crisp=a;var g=this.chart.inverted,b=this.borderWidth%\\n2/2;k(this.points,function(d,a){var e=this.postTranslate(a,d.shapeArgs.x,d),c=this.postTranslate(a,d.shapeArgs.x+d.shapeArgs.width);this.options.crisp&&(e=Math.round(e)-b,c=Math.round(c)-b);d.shapeArgs.x=e;d.shapeArgs.width=c-e;d.plotX=(e+c)/2;g?d.tooltipPos[1]=this.xAxis.len-this.postTranslate(a,this.xAxis.len-d.tooltipPos[1]):d.tooltipPos[0]=this.postTranslate(a,d.tooltipPos[0])},this)}},{isValid:function(){return b.isNumber(this.y,!0)&&b.isNumber(this.z,!0)}});b.Tick.prototype.postTranslate=function(a,\\nb,c){var d=this.axis,e=a[b]-d.pos;d.horiz||(e=d.len-e);e=d.series[0].postTranslate(c,e);d.horiz||(e=d.len-e);a[b]=d.pos+e};c(b.Axis,\\\"afterDrawCrosshair\\\",function(a){this.variwide&&this.cross&&this.cross.attr(\\\"stroke-width\\\",a.point&&a.point.crosshairWidth)});c(b.Axis,\\\"afterRender\\\",function(){var a=this;!this.horiz&&this.variwide&&this.chart.labelCollectors.push(function(){return b.map(a.tickPositions,function(b,c){b=a.ticks[b].label;b.labelrank=a.zData[c];return b})})});c(b.Tick,\\\"afterGetPosition\\\",\\nfunction(a){var b=this.axis,c=b.horiz?\\\"x\\\":\\\"y\\\";b.categories&&b.variwide&&(this[c+\\\"Orig\\\"]=a.pos[c],this.postTranslate(a.pos,c,this.pos))});b.wrap(b.Tick.prototype,\\\"getLabelPosition\\\",function(b,c,m,d,e,l,h,k){var a=Array.prototype.slice.call(arguments,1),f=e?\\\"x\\\":\\\"y\\\";this.axis.variwide&&\\\"number\\\"===typeof this[f+\\\"Orig\\\"]&&(a[e?0:1]=this[f+\\\"Orig\\\"]);a=b.apply(this,a);this.axis.variwide&&this.axis.categories&&this.postTranslate(a,f,k);return a})})(c)});\\n\\n /* END modules/variwide.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1333,17 +1340,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1356,8 +1363,6 @@ " chart: {\n", " type: 'variwide'\n", " },\n", - " \n", - " modules: ['modules/variwide'],\n", "\n", " title: {\n", " text: 'Labor Costs in Europe, 2016'\n", @@ -1422,7 +1427,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(df, opts)\n", + "chart = Daru::View::Plot.new(df, opts, modules: ['modules/variwide'])\n", "chart.show_in_iruby" ] }, @@ -1438,69 +1443,75 @@ " /* BEGIN highcharts-more.js */\n", "\n", "/*\n", - " Highcharts JS v5.0.12 (2017-05-24)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(v){\"object\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\"pane\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\n", - "this.group||(this.group=d.g(\"pane-group\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\"left\":x>180+n&&x<360-n?\"right\":\"center\"):u=\"center\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\"getMarkPath\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\n", - "2+a),d=[\"M\",d,e,\"L\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\"arearange\",\"area\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\n", - "{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\n", - "(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\n", - "yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\"left\"),n.step={left:\"right\",center:\"center\",right:\"left\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\n", - "drawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\"right\":\"left\"):n||(c.verticalAlign=q?\"top\":\"bottom\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\n", - "arguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\"left\":\"right\"):n||(c.verticalAlign=q?\"bottom\":\"top\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\n", - "r(\"areasplinerange\",\"arearange\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\"columnrange\",\"arearange\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\n", - "f,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\"path\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\n", - "drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},\n", - "showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\n", - "h,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:d.path||[\"M\",-l,-q/2,\"L\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\"z\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\n", - "zIndex:1}).addClass(\"highcharts-dial\").add(b.group),a.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":g.borderWidth||0,stroke:g.borderColor||\"#cccccc\",fill:g.backgroundColor||\"#000000\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\n", - "b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\n", - "{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\"boxplot\",\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,\n", - "medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\"stroke-width\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\n", - "function(d){null!==b[d]&&(b[d+\"Plot\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\"animate\":\"attr\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\n", - "x||(f.graphic=x=b.g(\"point\").add(a.group),f.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(x),y&&(f.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(x)),z&&(f.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(x)),f.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\"stroke-width\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\n", - "I,C[\"stroke-width\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\"stroke-width\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\"M\",u,e,\"L\",u,k,\"M\",u,d,\"L\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\"M\",q,e,\"L\",q,d,\"L\",m,d,\"L\",m,e,\"L\",q,e,\"z\"]})),y&&(n=f.whiskers.strokeWidth()%2/\n", - "2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\"M\",u-t,k,\"L\",u+t,k,\"M\",u-t,c,\"L\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\"M\",q,g,\"L\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", - "whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\n", - "f=a.seriesType,h=a.seriesTypes;f(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\"y\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\n", - "0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\n", - "alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\"xData\":\"yData\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\n", - "e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\"minSize\",\"maxSize\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\n", - "rightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\"xy\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\n", - "(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\"getPointSpline\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\"C\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\"M\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\"translate\",\n", - "function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\"getGraphPath\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\"alignDataLabel\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\"getCoordinates\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\n", - "a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\"getAxes\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\"drawChartBox\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\"get\",\n", - "function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\n", + "v.getCenter.call(this)},update:function(a,b){r(!0,this.options,a);this.setOptions(this.options);this.render();u(this.chart.axes,function(c){c.pane===this&&(c.pane=null,c.update({},b))},this)}});a.Pane=p})(w);(function(a){var p=a.addEvent,v=a.Axis,u=a.each,q=a.extend,r=a.map,g=a.merge,m=a.noop,b=a.pick,c=a.pInt,d=a.Tick,k=a.wrap,e=a.correctFloat,f,h,t=v.prototype,l=d.prototype;a.radialAxisExtended||(a.radialAxisExtended=!0,f={getOffset:m,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=\n", + "!1},setScale:m,setCategories:m,setTitle:m},h={defaultRadialGaugeOptions:{labels:{align:\"center\",x:0,y:null},minorGridLineWidth:0,minorTickInterval:\"auto\",minorTickLength:10,minorTickPosition:\"inside\",minorTickWidth:1,tickLength:10,tickPosition:\"inside\",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:\"none\"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:\"circle\",\n", + "labels:{align:\"right\",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(b){b=this.options=g(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[]);a.fireEvent(this,\"afterSetOptions\")},getOffset:function(){t.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(c,d){c=this.center;var a=this.chart,n=b(d,c[2]/2-this.offset);this.isCircular||void 0!==d?(d=this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],n,n,{start:this.startAngleRad,\n", + "end:this.endAngleRad,open:!0,innerR:0}),d.xBounds=[this.left+c[0]],d.yBounds=[this.top+c[1]-n]):(d=this.postTranslate(this.angleRad,n),d=[\"M\",c[0]+a.plotLeft,c[1]+a.plotTop,\"L\",d.x,d.y]);return d},setAxisTranslation:function(){t.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=\n", + "this.isCircular&&void 0===b(this.userMax,this.options.max)&&e(this.endAngleRad-this.startAngleRad)===e(2*Math.PI))this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){t.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*b(this.sector,1)/2)},getPosition:function(c,d){return this.postTranslate(this.isCircular?this.translate(c):\n", + "this.angleRad,b(this.isCircular?d:this.translate(c),this.center[2]/2)-this.offset)},postTranslate:function(b,c){var d=this.chart,a=this.center;b=this.startAngleRad+b;return{x:d.plotLeft+a[0]+Math.cos(b)*c,y:d.plotTop+a[1]+Math.sin(b)*c}},getPlotBandPath:function(d,a,e){var f=this.center,n=this.startAngleRad,k=f[2]/2,h=[b(e.outerRadius,\"100%\"),e.innerRadius,b(e.thickness,10)],l=Math.min(this.offset,0),x=/%$/,t,B=this.isCircular;\"polygon\"===this.options.gridLineInterpolation?f=this.getPlotLinePath(d).concat(this.getPlotLinePath(a,\n", + "!0)):(d=Math.max(d,this.min),a=Math.min(a,this.max),B||(h[0]=this.translate(d),h[1]=this.translate(a)),h=r(h,function(b){x.test(b)&&(b=c(b,10)*k/100);return b}),\"circle\"!==e.shape&&B?(d=n+this.translate(d),a=n+this.translate(a)):(d=-Math.PI/2,a=1.5*Math.PI,t=!0),h[0]-=l,h[2]-=l,f=this.chart.renderer.symbols.arc(this.left+f[0],this.top+f[1],h[0],h[0],{start:Math.min(d,a),end:Math.max(d,a),innerR:b(h[1],h[0]-h[2]),open:t}));return f},getPlotLinePath:function(b,c){var d=this,a=d.center,f=d.chart,e=d.getPosition(b),\n", + "h,k,n;d.isCircular?n=[\"M\",a[0]+f.plotLeft,a[1]+f.plotTop,\"L\",e.x,e.y]:\"circle\"===d.options.gridLineInterpolation?(b=d.translate(b))&&(n=d.getLinePath(0,b)):(u(f.xAxis,function(b){b.pane===d.pane&&(h=b)}),n=[],b=d.translate(b),a=h.tickPositions,h.autoConnect&&(a=a.concat([a[0]])),c&&(a=[].concat(a).reverse()),u(a,function(c,d){k=h.getPosition(c,b);n.push(d?\"L\":\"M\",k.x,k.y)}));return n},getTitlePosition:function(){var b=this.center,c=this.chart,d=this.options.title;return{x:c.plotLeft+b[0]+(d.x||0),\n", + "y:c.plotTop+b[1]-{high:.5,middle:.25,low:0}[d.align]*b[2]+(d.y||0)}}},p(v,\"init\",function(b){var c=this.chart,d=c.angular,a=c.polar,e=this.isXAxis,k=d&&e,n,l=c.options;b=b.userOptions.pane||0;b=this.pane=c.pane&&c.pane[b];if(d){if(q(this,k?f:h),n=!e)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else a&&(q(this,h),this.defaultRadialOptions=(n=e)?this.defaultRadialXOptions:g(this.defaultYAxisOptions,this.defaultRadialYOptions));d||a?(this.isRadial=!0,c.inverted=!1,l.chart.zoomType=null):\n", + "this.isRadial=!1;b&&n&&(b.axis=this);this.isCircular=n}),p(v,\"afterInit\",function(){var c=this.chart,d=this.options,a=this.pane,e=a&&a.options;c.angular&&this.isXAxis||!a||!c.angular&&!c.polar||(this.angleRad=(d.angle||0)*Math.PI/180,this.startAngleRad=(e.startAngle-90)*Math.PI/180,this.endAngleRad=(b(e.endAngle,e.startAngle+360)-90)*Math.PI/180,this.offset=d.offset||0)}),k(t,\"autoLabelAlign\",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))}),p(d,\"afterGetPosition\",function(b){this.axis.getPosition&&\n", + "q(b.pos,this.axis.getPosition(this.pos))}),p(d,\"afterGetLabelPosition\",function(c){var d=this.axis,a=this.label,e=d.options.labels,f=e.y,h,k=20,l=e.align,n=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial&&(h=d.getPosition(this.pos,d.center[2]/2+b(e.distance,-25)),\"auto\"===e.rotation?a.attr({rotation:n}):null===f&&(f=d.chart.renderer.fontMetrics(a.styles&&a.styles.fontSize).b-a.getBBox().height/2),null===l&&(d.isCircular?(this.label.getBBox().width>d.len*d.tickInterval/\n", + "(d.max-d.min)&&(k=0),l=n>k&&n<180-k?\"left\":n>180+k&&n<360-k?\"right\":\"center\"):l=\"center\",a.attr({align:l})),c.pos.x=h.x+e.x,c.pos.y=h.y+f)}),k(l,\"getMarkPath\",function(b,c,d,a,e,f,h){var k=this.axis;k.isRadial?(b=k.getPosition(this.pos,k.center[2]/2+a),c=[\"M\",c,d,\"L\",b.x,b.y]):c=b.call(this,c,d,a,e,f,h);return c}))})(w);(function(a){var p=a.each,v=a.pick,u=a.defined,q=a.seriesType,r=a.seriesTypes,g=a.Series.prototype,m=a.Point.prototype;q(\"arearange\",\"area\",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", + "trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(b){return[b.low,b.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(b){var c=this.chart,d=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=d.x-c.plotLeft;b.plotHigh=d.y-c.plotTop;b.plotLowX=b.plotX},translate:function(){var b=this,c=b.yAxis,d=!!b.modifyValue;r.area.prototype.translate.apply(b);\n", + "p(b.points,function(a){var e=a.low,f=a.high,h=a.plotY;null===f||null===e?(a.isNull=!0,a.plotY=null):(a.plotLow=h,a.plotHigh=c.translate(d?b.modifyValue(f,a):f,0,1,0,1),d&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(c){b.highToXY(c);c.tooltipPos=[(c.plotHighX+c.plotLowX)/2,(c.plotHigh+c.plotLow)/2]})},getGraphPath:function(b){var c=[],d=[],a,e=r.area.prototype.getGraphPath,f,h,t;t=this.options;var l=this.chart.polar&&!1!==t.connectEnds,n=t.connectNulls,x=t.step;b=b||this.points;\n", + "for(a=b.length;a--;)f=b[a],f.isNull||l||n||b[a+1]&&!b[a+1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1}),h={polarPlotY:f.polarPlotY,rectPlotX:f.rectPlotX,yBottom:f.yBottom,plotX:v(f.plotHighX,f.plotX),plotY:f.plotHigh,isNull:f.isNull},d.push(h),c.push(h),f.isNull||l||n||b[a-1]&&!b[a-1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1});b=e.call(this,b);x&&(!0===x&&(x=\"left\"),t.step={left:\"right\",center:\"center\",right:\"left\"}[x]);c=e.call(this,c);d=e.call(this,d);t.step=x;t=[].concat(b,\n", + "c);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=t;this.areaPath=b.concat(d);t.isArea=!0;t.xMap=b.xMap;this.areaPath.xMap=b.xMap;return t},drawDataLabels:function(){var b=this.data,c=b.length,d,a=[],e=this.options.dataLabels,f=e.align,h=e.verticalAlign,t=e.inside,l,n,x=this.chart.inverted;if(e.enabled||this._hasPointLabels){for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,a[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=\n", + "n,x?f||(e.align=n?\"right\":\"left\"):h||(e.verticalAlign=n?\"top\":\"bottom\"),e.x=e.xHigh,e.y=e.yHigh;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments);for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=a[d],l.y=l.low,l.plotY=l._plotY,l.below=!n,x?f||(e.align=n?\"left\":\"right\"):h||(e.verticalAlign=n?\"bottom\":\"top\"),e.x=e.xLow,e.y=e.yLow;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments)}e.align=f;e.verticalAlign=h},alignDataLabel:function(){r.column.prototype.alignDataLabel.apply(this,\n", + "arguments)},drawPoints:function(){var b=this.points.length,c,d;g.drawPoints.apply(this,arguments);for(d=0;dy&&(y*=-1,g-=y);h?(e=n.barX+a,n.shapeType=\"path\",n.shapeArgs={d:b.polarArc(g+y,g,e,e+n.pointWidth)}):(k.height=y,k.y=g,n.tooltipPos=f.inverted?[c.len+c.pos-f.plotLeft-g-y/2,d.len+d.pos-f.plotTop-k.x-k.width/2,y]:[d.left-f.plotLeft+k.x+k.width/2,c.pos-f.plotTop+g+y/2,y])})},directTouch:!0,trackerGroups:[\"group\",\n", + "\"dataLabelsGroup\"],drawGraph:q,getSymbol:q,crispCol:m.crispCol,drawPoints:m.drawPoints,drawTracker:m.drawTracker,getColumnMetrics:m.getColumnMetrics,pointAttribs:m.pointAttribs,animate:function(){return m.animate.apply(this,arguments)},polarArc:function(){return m.polarArc.apply(this,arguments)},translate3dPoints:function(){return m.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return m.translate3dShapes.apply(this,arguments)}},{setState:m.pointClass.prototype.setState})})(w);\n", + "(function(a){var p=a.each,v=a.isNumber,u=a.merge,q=a.pick,r=a.pInt,g=a.Series,m=a.seriesType,b=a.TrackerMixin;m(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,d=this.options,a=b.center;\n", + "this.generatePoints();p(this.points,function(c){var e=u(d.dial,c.dial),h=r(q(e.radius,80))*a[2]/200,k=r(q(e.baseLength,70))*h/100,l=r(q(e.rearLength,10))*h/100,n=e.baseWidth||3,x=e.topWidth||1,g=d.overshoot,m=b.startAngleRad+b.translate(c.y,null,null,null,!0);v(g)?(g=g/180*Math.PI,m=Math.max(b.startAngleRad-g,Math.min(b.endAngleRad+g,m))):!1===d.wrap&&(m=Math.max(b.startAngleRad,Math.min(b.endAngleRad,m)));m=180*m/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:e.path||[\"M\",-l,-n/2,\"L\",k,-n/2,h,-x/2,h,\n", + "x/2,k,n/2,-l,n/2,\"z\"],translateX:a[0],translateY:a[1],rotation:m};c.plotX=a[0];c.plotY=a[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,e=b.options,f=e.pivot,h=b.chart.renderer;p(b.points,function(c){var a=c.graphic,d=c.shapeArgs,f=d.d,k=u(e.dial,c.dial);a?(a.animate(d),d.d=f):(c.graphic=h[c.shapeType](d).attr({rotation:d.rotation,zIndex:1}).addClass(\"highcharts-dial\").add(b.group),c.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\n", + "\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,q(f.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":f.borderWidth||0,stroke:f.borderColor||\"#cccccc\",fill:f.backgroundColor||\"#000000\"}))},animate:function(b){var c=this;b||(p(c.points,function(b){var a=b.graphic;a&&(a.attr({rotation:180*c.yAxis.startAngleRad/Math.PI}),a.animate({rotation:b.shapeArgs.rotation},c.options.animation))}),c.animate=\n", + "null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);g.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){g.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();q(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},{setState:function(b){this.state=b}})})(w);(function(a){var p=a.each,v=a.noop,u=a.pick,q=a.seriesType,r=a.seriesTypes;q(\"boxplot\",\n", + "\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,\n", + "a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(){return{}},drawDataLabels:v,translate:function(){var a=this.yAxis,m=this.pointArrayMap;r.column.prototype.translate.apply(this);p(this.points,function(b){p(m,function(c){null!==b[c]&&(b[c+\"Plot\"]=a.translate(b[c],0,1,0,1))})})},drawPoints:function(){var a=this,m=a.options,b=a.chart.renderer,c,d,k,e,f,h,t=0,l,n,x,r,q=!1!==a.doQuartiles,v,z=a.options.whiskerLength;p(a.points,function(g){var p=g.graphic,y=p?\"animate\":\"attr\",B=g.shapeArgs,w={},D=\n", + "{},I={},J={},C=g.color||a.color;void 0!==g.plotY&&(l=B.width,n=Math.floor(B.x),x=n+l,r=Math.round(l/2),c=Math.floor(q?g.q1Plot:g.lowPlot),d=Math.floor(q?g.q3Plot:g.lowPlot),k=Math.floor(g.highPlot),e=Math.floor(g.lowPlot),p||(g.graphic=p=b.g(\"point\").add(a.group),g.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(p),z&&(g.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(p)),q&&(g.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(p)),g.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(p)),\n", + "D.stroke=g.stemColor||m.stemColor||C,D[\"stroke-width\"]=u(g.stemWidth,m.stemWidth,m.lineWidth),D.dashstyle=g.stemDashStyle||m.stemDashStyle,g.stem.attr(D),z&&(I.stroke=g.whiskerColor||m.whiskerColor||C,I[\"stroke-width\"]=u(g.whiskerWidth,m.whiskerWidth,m.lineWidth),g.whiskers.attr(I)),q&&(w.fill=g.fillColor||m.fillColor||C,w.stroke=m.lineColor||C,w[\"stroke-width\"]=m.lineWidth||0,g.box.attr(w)),J.stroke=g.medianColor||m.medianColor||C,J[\"stroke-width\"]=u(g.medianWidth,m.medianWidth,m.lineWidth),g.medianShape.attr(J),\n", + "h=g.stem.strokeWidth()%2/2,t=n+r+h,g.stem[y]({d:[\"M\",t,d,\"L\",t,k,\"M\",t,c,\"L\",t,e]}),q&&(h=g.box.strokeWidth()%2/2,c=Math.floor(c)+h,d=Math.floor(d)+h,n+=h,x+=h,g.box[y]({d:[\"M\",n,d,\"L\",n,c,\"L\",x,c,\"L\",x,d,\"L\",n,d,\"z\"]})),z&&(h=g.whiskers.strokeWidth()%2/2,k+=h,e+=h,v=/%$/.test(z)?r*parseFloat(z)/100:z/2,g.whiskers[y]({d:[\"M\",t-v,k,\"L\",t+v,k,\"M\",t-v,e,\"L\",t+v,e]})),f=Math.round(g.medianPlot),h=g.medianShape.strokeWidth()%2/2,f+=h,g.medianShape[y]({d:[\"M\",n,f,\"L\",x,f]}))})},setStackedPoints:v})})(w);\n", + "(function(a){var p=a.each,v=a.noop,u=a.seriesType,q=a.seriesTypes;u(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:q.arearange?function(){var a=\n", + "this.pointValKey;q.arearange.prototype.drawDataLabels.call(this);p(this.data,function(g){g.y=g[a]})}:v,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||q.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var p=a.correctFloat,v=a.isNumber,u=a.pick,q=a.Point,r=a.Series,g=a.seriesType,m=a.seriesTypes;g(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},\n", + "{pointValKey:\"y\",showLine:!0,generatePoints:function(){var b=this.options.threshold,c,a,k,e;m.column.prototype.generatePoints.apply(this);k=0;for(a=this.points.length;kf.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),e.yBottom=f.y+f.height,f.height<=p&&!e.isNull?(f.height=p,f.y-=r,e.plotY=f.y,e.minPointLengthOffset=0>e.y?-r:r):e.minPointLengthOffset=0,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=c.len-f:e.tooltipPos[1]=f},processData:function(b){var c=this.yData,a=this.options.data,k,e=c.length,f,h,t,l,n,g;h=f=t=\n", + "l=this.options.threshold||0;for(g=0;gb[l-1].y&&!e||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*\n", + "e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:m,applyZones:m},{haloPath:function(b){return d.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});u.prototype.beforePadding=function(){var d=this,e=this.len,f=this.chart,k=0,m=e,q=this.isXAxis,u=q?\"xData\":\"yData\",w=this.min,z={},K=Math.min(f.plotWidth,f.plotHeight),A=Number.MAX_VALUE,F=-Number.MAX_VALUE,\n", + "G=this.max-w,E=e/G,H=[];r(this.series,function(e){var h=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(d.allowZoomOutside=!0,H.push(e),q&&(r([\"minSize\",\"maxSize\"],function(b){var a=h[b],d=/%$/.test(a),a=c(a);z[b]=d?K*a/100:a}),e.minPxSize=z.minSize,e.maxPxSize=Math.max(z.maxSize,z.minSize),e=a.grep(e.zData,a.isNumber),e.length&&(A=b(h.zMin,Math.min(A,Math.max(v(e),!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),F=b(h.zMax,Math.max(F,p(e))))))});r(H,function(b){var a=\n", + "b[u],c=a.length,e;q&&b.getRadii(A,F,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+f):c-1;f=c+1>b.length-1?f:c+1;h=b[a];f=b[f];g=h.plotX;h=h.plotY;l=f.plotX;n=f.plotY;f=b[c].plotX;c=b[c].plotY;g=(1.5*f+g)/2.5;h=(1.5*c+h)/2.5;l=(1.5*f+l)/2.5;m=(1.5*c+n)/2.5;n=Math.sqrt(Math.pow(g-\n", + "f,2)+Math.pow(h-c,2));p=Math.sqrt(Math.pow(l-f,2)+Math.pow(m-c,2));g=Math.atan2(h-c,g-f);m=Math.PI/2+(g+Math.atan2(m-c,l-f))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=f+Math.cos(m)*n;h=c+Math.sin(m)*n;l=f+Math.cos(Math.PI+m)*p;m=c+Math.sin(Math.PI+m)*p;f={rightContX:l,rightContY:m,leftContX:g,leftContY:h,plotX:f,plotY:c};d&&(f.prevPointCont=this.getConnectors(b,a,!1,k));return f},r(g,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\n", + "\"xy\");b.apply(this)}),g.toXY=function(b){var a,d=this.chart,k=b.plotX;a=b.plotY;b.rectPlotX=k;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-d.plotLeft;b.plotY=b.polarPlotY=a.y-d.plotTop;this.kdByAngle?(d=(k/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>d&&(d+=360),b.clientX=d):b.clientX=b.plotX},q.spline&&(r(q.spline.prototype,\"getPointSpline\",function(b,a,d,k){this.chart.polar?k?(b=this.getConnectors(a,k,!0,this.connectEnds),b=[\"C\",b.prevPointCont.rightContX,\n", + "b.prevPointCont.rightContY,b.leftContX,b.leftContY,b.plotX,b.plotY]):b=[\"M\",d.plotX,d.plotY]:b=b.call(this,a,d,k);return b}),q.areasplinerange&&(q.areasplinerange.prototype.getPointSpline=q.spline.prototype.getPointSpline)),a.addEvent(u,\"afterTranslate\",function(){var b=this.chart,c,d;if(b.polar){this.kdByAngle=b.tooltip&&b.tooltip.shared;if(!this.preventPostTranslate)for(c=this.points,d=c.length;d--;)this.toXY(c[d]);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!a.addEvent(this,\"afterRender\",\n", + "function(){var c;b.polar&&(c=this.yAxis.center,this.group.clip(b.renderer.clipCircle(c[0],c[1],c[2]/2)),this.setClip=a.noop)}))}},{order:2}),r(g,\"getGraphPath\",function(b,a){var c=this,g,e,f;if(this.chart.polar){a=a||this.points;for(g=0;gb.center[1]}),r(q,\"alignDataLabel\",function(a,c,d,k,e,f){this.chart.polar?(a=c.rectPlotX/Math.PI*180,null===k.align&&\n", + "(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),g.alignDataLabel.call(this,c,d,k,e,f)):a.call(this,c,d,k,e,f)})),r(m,\"getCoordinates\",function(a,c){var b=this.chart,g={xAxis:[],yAxis:[]};b.polar?p(b.axes,function(a){var d=a.isXAxis,e=a.center,k=c.chartX-e[0]-b.plotLeft,e=c.chartY-e[1]-b.plotTop;g[d?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(d?Math.PI-Math.atan2(k,e):Math.sqrt(Math.pow(k,2)+Math.pow(e,\n", + "2)),!0)})}):g=a.call(this,c);return g}),a.SVGRenderer.prototype.clipCircle=function(b,c,d){var g=a.uniqueKey(),e=this.createElement(\"clipPath\").attr({id:g}).add(this.defs);b=this.circle(b,c,d).add(e);b.id=g;b.clipPath=e;return b},a.addEvent(a.Chart,\"getAxes\",function(){this.pane||(this.pane=[]);p(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this)}),a.addEvent(a.Chart,\"afterDrawChartBox\",function(){p(this.pane,function(a){a.render()})}),r(a.Chart.prototype,\"get\",function(b,c){return a.find(this.pane,\n", + "function(a){return a.options.id===c})||b.call(this,c)}))})(w)});\n", "\n", " /* END highcharts-more.js*/\n", "\n", @@ -1511,7 +1522,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v5.0.12 (2017-05-24)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(v){\\\"object\\\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\\nthis.group||(this.group=d.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\\\"left\\\":x>180+n&&x<360-n?\\\"right\\\":\\\"center\\\"):u=\\\"center\\\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\\\"getMarkPath\\\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\\n2+a),d=[\\\"M\\\",d,e,\\\"L\\\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\\n{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\\n(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\\nyBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\\\"left\\\"),n.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\\ndrawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\\\"right\\\":\\\"left\\\"):n||(c.verticalAlign=q?\\\"top\\\":\\\"bottom\\\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\\narguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\\\"left\\\":\\\"right\\\"):n||(c.verticalAlign=q?\\\"bottom\\\":\\\"top\\\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\\nr(\\\"areasplinerange\\\",\\\"arearange\\\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\\\"columnrange\\\",\\\"arearange\\\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\\nf,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\\\"path\\\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\\ndrawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},\\nshowInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\\nh,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:d.path||[\\\"M\\\",-l,-q/2,\\\"L\\\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\\\"z\\\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\\nzIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),a.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":g.borderWidth||0,stroke:g.borderColor||\\\"#cccccc\\\",fill:g.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\\nb.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\\n{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\\\"boxplot\\\",\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,\\nmedianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\\\"stroke-width\\\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\\nfunction(d){null!==b[d]&&(b[d+\\\"Plot\\\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\\\"animate\\\":\\\"attr\\\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\\nx||(f.graphic=x=b.g(\\\"point\\\").add(a.group),f.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(x),y&&(f.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(x)),z&&(f.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(x)),f.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\\\"stroke-width\\\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\\nI,C[\\\"stroke-width\\\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\\\"stroke-width\\\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\\\"M\\\",u,e,\\\"L\\\",u,k,\\\"M\\\",u,d,\\\"L\\\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\\\"M\\\",q,e,\\\"L\\\",q,d,\\\"L\\\",m,d,\\\"L\\\",m,e,\\\"L\\\",q,e,\\\"z\\\"]})),y&&(n=f.whiskers.strokeWidth()%2/\\n2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\\\"M\\\",u-t,k,\\\"L\\\",u+t,k,\\\"M\\\",u-t,c,\\\"L\\\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\\\"M\\\",q,g,\\\"L\\\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\nwhiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\\nf=a.seriesType,h=a.seriesTypes;f(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\\\"y\\\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\\n0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\\nalignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\\\"xData\\\":\\\"yData\\\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\\ne.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\\nrightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\\"xy\\\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\\n(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\\\"getPointSpline\\\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\\\"C\\\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\\\"M\\\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\\\"translate\\\",\\nfunction(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\\\"getGraphPath\\\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\\\"alignDataLabel\\\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\\\"getCoordinates\\\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\\na.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\\\"getAxes\\\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\\\"drawChartBox\\\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\\\"get\\\",\\nfunction(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(w){\\\"object\\\"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function p(a,b){this.init(a,b)}var v=a.CenteredSeriesMixin,u=a.each,q=a.extend,r=a.merge,g=a.splat;q(p.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=r(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,c=this.chart.renderer;\\nthis.group||(this.group=c.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=g(b),a=Math.max(b.length,this.background.length||0),c=0;cd.len*d.tickInterval/\\n(d.max-d.min)&&(k=0),l=n>k&&n<180-k?\\\"left\\\":n>180+k&&n<360-k?\\\"right\\\":\\\"center\\\"):l=\\\"center\\\",a.attr({align:l})),c.pos.x=h.x+e.x,c.pos.y=h.y+f)}),k(l,\\\"getMarkPath\\\",function(b,c,d,a,e,f,h){var k=this.axis;k.isRadial?(b=k.getPosition(this.pos,k.center[2]/2+a),c=[\\\"M\\\",c,d,\\\"L\\\",b.x,b.y]):c=b.call(this,c,d,a,e,f,h);return c}))})(w);(function(a){var p=a.each,v=a.pick,u=a.defined,q=a.seriesType,r=a.seriesTypes,g=a.Series.prototype,m=a.Point.prototype;q(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\ntrackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(b){return[b.low,b.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(b){var c=this.chart,d=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=d.x-c.plotLeft;b.plotHigh=d.y-c.plotTop;b.plotLowX=b.plotX},translate:function(){var b=this,c=b.yAxis,d=!!b.modifyValue;r.area.prototype.translate.apply(b);\\np(b.points,function(a){var e=a.low,f=a.high,h=a.plotY;null===f||null===e?(a.isNull=!0,a.plotY=null):(a.plotLow=h,a.plotHigh=c.translate(d?b.modifyValue(f,a):f,0,1,0,1),d&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(c){b.highToXY(c);c.tooltipPos=[(c.plotHighX+c.plotLowX)/2,(c.plotHigh+c.plotLow)/2]})},getGraphPath:function(b){var c=[],d=[],a,e=r.area.prototype.getGraphPath,f,h,t;t=this.options;var l=this.chart.polar&&!1!==t.connectEnds,n=t.connectNulls,x=t.step;b=b||this.points;\\nfor(a=b.length;a--;)f=b[a],f.isNull||l||n||b[a+1]&&!b[a+1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1}),h={polarPlotY:f.polarPlotY,rectPlotX:f.rectPlotX,yBottom:f.yBottom,plotX:v(f.plotHighX,f.plotX),plotY:f.plotHigh,isNull:f.isNull},d.push(h),c.push(h),f.isNull||l||n||b[a-1]&&!b[a-1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1});b=e.call(this,b);x&&(!0===x&&(x=\\\"left\\\"),t.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[x]);c=e.call(this,c);d=e.call(this,d);t.step=x;t=[].concat(b,\\nc);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=t;this.areaPath=b.concat(d);t.isArea=!0;t.xMap=b.xMap;this.areaPath.xMap=b.xMap;return t},drawDataLabels:function(){var b=this.data,c=b.length,d,a=[],e=this.options.dataLabels,f=e.align,h=e.verticalAlign,t=e.inside,l,n,x=this.chart.inverted;if(e.enabled||this._hasPointLabels){for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,a[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=\\nn,x?f||(e.align=n?\\\"right\\\":\\\"left\\\"):h||(e.verticalAlign=n?\\\"top\\\":\\\"bottom\\\"),e.x=e.xHigh,e.y=e.yHigh;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments);for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=a[d],l.y=l.low,l.plotY=l._plotY,l.below=!n,x?f||(e.align=n?\\\"left\\\":\\\"right\\\"):h||(e.verticalAlign=n?\\\"bottom\\\":\\\"top\\\"),e.x=e.xLow,e.y=e.yLow;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments)}e.align=f;e.verticalAlign=h},alignDataLabel:function(){r.column.prototype.alignDataLabel.apply(this,\\narguments)},drawPoints:function(){var b=this.points.length,c,d;g.drawPoints.apply(this,arguments);for(d=0;dy&&(y*=-1,g-=y);h?(e=n.barX+a,n.shapeType=\\\"path\\\",n.shapeArgs={d:b.polarArc(g+y,g,e,e+n.pointWidth)}):(k.height=y,k.y=g,n.tooltipPos=f.inverted?[c.len+c.pos-f.plotLeft-g-y/2,d.len+d.pos-f.plotTop-k.x-k.width/2,y]:[d.left-f.plotLeft+k.x+k.width/2,c.pos-f.plotTop+g+y/2,y])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],drawGraph:q,getSymbol:q,crispCol:m.crispCol,drawPoints:m.drawPoints,drawTracker:m.drawTracker,getColumnMetrics:m.getColumnMetrics,pointAttribs:m.pointAttribs,animate:function(){return m.animate.apply(this,arguments)},polarArc:function(){return m.polarArc.apply(this,arguments)},translate3dPoints:function(){return m.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return m.translate3dShapes.apply(this,arguments)}},{setState:m.pointClass.prototype.setState})})(w);\\n(function(a){var p=a.each,v=a.isNumber,u=a.merge,q=a.pick,r=a.pInt,g=a.Series,m=a.seriesType,b=a.TrackerMixin;m(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,d=this.options,a=b.center;\\nthis.generatePoints();p(this.points,function(c){var e=u(d.dial,c.dial),h=r(q(e.radius,80))*a[2]/200,k=r(q(e.baseLength,70))*h/100,l=r(q(e.rearLength,10))*h/100,n=e.baseWidth||3,x=e.topWidth||1,g=d.overshoot,m=b.startAngleRad+b.translate(c.y,null,null,null,!0);v(g)?(g=g/180*Math.PI,m=Math.max(b.startAngleRad-g,Math.min(b.endAngleRad+g,m))):!1===d.wrap&&(m=Math.max(b.startAngleRad,Math.min(b.endAngleRad,m)));m=180*m/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:e.path||[\\\"M\\\",-l,-n/2,\\\"L\\\",k,-n/2,h,-x/2,h,\\nx/2,k,n/2,-l,n/2,\\\"z\\\"],translateX:a[0],translateY:a[1],rotation:m};c.plotX=a[0];c.plotY=a[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,e=b.options,f=e.pivot,h=b.chart.renderer;p(b.points,function(c){var a=c.graphic,d=c.shapeArgs,f=d.d,k=u(e.dial,c.dial);a?(a.animate(d),d.d=f):(c.graphic=h[c.shapeType](d).attr({rotation:d.rotation,zIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),c.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\n\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,q(f.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":f.borderWidth||0,stroke:f.borderColor||\\\"#cccccc\\\",fill:f.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var c=this;b||(p(c.points,function(b){var a=b.graphic;a&&(a.attr({rotation:180*c.yAxis.startAngleRad/Math.PI}),a.animate({rotation:b.shapeArgs.rotation},c.options.animation))}),c.animate=\\nnull)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);g.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){g.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();q(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},{setState:function(b){this.state=b}})})(w);(function(a){var p=a.each,v=a.noop,u=a.pick,q=a.seriesType,r=a.seriesTypes;q(\\\"boxplot\\\",\\n\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,\\na.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(){return{}},drawDataLabels:v,translate:function(){var a=this.yAxis,m=this.pointArrayMap;r.column.prototype.translate.apply(this);p(this.points,function(b){p(m,function(c){null!==b[c]&&(b[c+\\\"Plot\\\"]=a.translate(b[c],0,1,0,1))})})},drawPoints:function(){var a=this,m=a.options,b=a.chart.renderer,c,d,k,e,f,h,t=0,l,n,x,r,q=!1!==a.doQuartiles,v,z=a.options.whiskerLength;p(a.points,function(g){var p=g.graphic,y=p?\\\"animate\\\":\\\"attr\\\",B=g.shapeArgs,w={},D=\\n{},I={},J={},C=g.color||a.color;void 0!==g.plotY&&(l=B.width,n=Math.floor(B.x),x=n+l,r=Math.round(l/2),c=Math.floor(q?g.q1Plot:g.lowPlot),d=Math.floor(q?g.q3Plot:g.lowPlot),k=Math.floor(g.highPlot),e=Math.floor(g.lowPlot),p||(g.graphic=p=b.g(\\\"point\\\").add(a.group),g.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(p),z&&(g.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(p)),q&&(g.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(p)),g.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(p)),\\nD.stroke=g.stemColor||m.stemColor||C,D[\\\"stroke-width\\\"]=u(g.stemWidth,m.stemWidth,m.lineWidth),D.dashstyle=g.stemDashStyle||m.stemDashStyle,g.stem.attr(D),z&&(I.stroke=g.whiskerColor||m.whiskerColor||C,I[\\\"stroke-width\\\"]=u(g.whiskerWidth,m.whiskerWidth,m.lineWidth),g.whiskers.attr(I)),q&&(w.fill=g.fillColor||m.fillColor||C,w.stroke=m.lineColor||C,w[\\\"stroke-width\\\"]=m.lineWidth||0,g.box.attr(w)),J.stroke=g.medianColor||m.medianColor||C,J[\\\"stroke-width\\\"]=u(g.medianWidth,m.medianWidth,m.lineWidth),g.medianShape.attr(J),\\nh=g.stem.strokeWidth()%2/2,t=n+r+h,g.stem[y]({d:[\\\"M\\\",t,d,\\\"L\\\",t,k,\\\"M\\\",t,c,\\\"L\\\",t,e]}),q&&(h=g.box.strokeWidth()%2/2,c=Math.floor(c)+h,d=Math.floor(d)+h,n+=h,x+=h,g.box[y]({d:[\\\"M\\\",n,d,\\\"L\\\",n,c,\\\"L\\\",x,c,\\\"L\\\",x,d,\\\"L\\\",n,d,\\\"z\\\"]})),z&&(h=g.whiskers.strokeWidth()%2/2,k+=h,e+=h,v=/%$/.test(z)?r*parseFloat(z)/100:z/2,g.whiskers[y]({d:[\\\"M\\\",t-v,k,\\\"L\\\",t+v,k,\\\"M\\\",t-v,e,\\\"L\\\",t+v,e]})),f=Math.round(g.medianPlot),h=g.medianShape.strokeWidth()%2/2,f+=h,g.medianShape[y]({d:[\\\"M\\\",n,f,\\\"L\\\",x,f]}))})},setStackedPoints:v})})(w);\\n(function(a){var p=a.each,v=a.noop,u=a.seriesType,q=a.seriesTypes;u(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},whiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:q.arearange?function(){var a=\\nthis.pointValKey;q.arearange.prototype.drawDataLabels.call(this);p(this.data,function(g){g.y=g[a]})}:v,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||q.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var p=a.correctFloat,v=a.isNumber,u=a.pick,q=a.Point,r=a.Series,g=a.seriesType,m=a.seriesTypes;g(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},\\n{pointValKey:\\\"y\\\",showLine:!0,generatePoints:function(){var b=this.options.threshold,c,a,k,e;m.column.prototype.generatePoints.apply(this);k=0;for(a=this.points.length;kf.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),e.yBottom=f.y+f.height,f.height<=p&&!e.isNull?(f.height=p,f.y-=r,e.plotY=f.y,e.minPointLengthOffset=0>e.y?-r:r):e.minPointLengthOffset=0,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=c.len-f:e.tooltipPos[1]=f},processData:function(b){var c=this.yData,a=this.options.data,k,e=c.length,f,h,t,l,n,g;h=f=t=\\nl=this.options.threshold||0;for(g=0;gb[l-1].y&&!e||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*\\ne,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:m,applyZones:m},{haloPath:function(b){return d.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});u.prototype.beforePadding=function(){var d=this,e=this.len,f=this.chart,k=0,m=e,q=this.isXAxis,u=q?\\\"xData\\\":\\\"yData\\\",w=this.min,z={},K=Math.min(f.plotWidth,f.plotHeight),A=Number.MAX_VALUE,F=-Number.MAX_VALUE,\\nG=this.max-w,E=e/G,H=[];r(this.series,function(e){var h=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(d.allowZoomOutside=!0,H.push(e),q&&(r([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=h[b],d=/%$/.test(a),a=c(a);z[b]=d?K*a/100:a}),e.minPxSize=z.minSize,e.maxPxSize=Math.max(z.maxSize,z.minSize),e=a.grep(e.zData,a.isNumber),e.length&&(A=b(h.zMin,Math.min(A,Math.max(v(e),!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),F=b(h.zMax,Math.max(F,p(e))))))});r(H,function(b){var a=\\nb[u],c=a.length,e;q&&b.getRadii(A,F,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+f):c-1;f=c+1>b.length-1?f:c+1;h=b[a];f=b[f];g=h.plotX;h=h.plotY;l=f.plotX;n=f.plotY;f=b[c].plotX;c=b[c].plotY;g=(1.5*f+g)/2.5;h=(1.5*c+h)/2.5;l=(1.5*f+l)/2.5;m=(1.5*c+n)/2.5;n=Math.sqrt(Math.pow(g-\\nf,2)+Math.pow(h-c,2));p=Math.sqrt(Math.pow(l-f,2)+Math.pow(m-c,2));g=Math.atan2(h-c,g-f);m=Math.PI/2+(g+Math.atan2(m-c,l-f))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=f+Math.cos(m)*n;h=c+Math.sin(m)*n;l=f+Math.cos(Math.PI+m)*p;m=c+Math.sin(Math.PI+m)*p;f={rightContX:l,rightContY:m,leftContX:g,leftContY:h,plotX:f,plotY:c};d&&(f.prevPointCont=this.getConnectors(b,a,!1,k));return f},r(g,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\n\\\"xy\\\");b.apply(this)}),g.toXY=function(b){var a,d=this.chart,k=b.plotX;a=b.plotY;b.rectPlotX=k;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-d.plotLeft;b.plotY=b.polarPlotY=a.y-d.plotTop;this.kdByAngle?(d=(k/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>d&&(d+=360),b.clientX=d):b.clientX=b.plotX},q.spline&&(r(q.spline.prototype,\\\"getPointSpline\\\",function(b,a,d,k){this.chart.polar?k?(b=this.getConnectors(a,k,!0,this.connectEnds),b=[\\\"C\\\",b.prevPointCont.rightContX,\\nb.prevPointCont.rightContY,b.leftContX,b.leftContY,b.plotX,b.plotY]):b=[\\\"M\\\",d.plotX,d.plotY]:b=b.call(this,a,d,k);return b}),q.areasplinerange&&(q.areasplinerange.prototype.getPointSpline=q.spline.prototype.getPointSpline)),a.addEvent(u,\\\"afterTranslate\\\",function(){var b=this.chart,c,d;if(b.polar){this.kdByAngle=b.tooltip&&b.tooltip.shared;if(!this.preventPostTranslate)for(c=this.points,d=c.length;d--;)this.toXY(c[d]);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!a.addEvent(this,\\\"afterRender\\\",\\nfunction(){var c;b.polar&&(c=this.yAxis.center,this.group.clip(b.renderer.clipCircle(c[0],c[1],c[2]/2)),this.setClip=a.noop)}))}},{order:2}),r(g,\\\"getGraphPath\\\",function(b,a){var c=this,g,e,f;if(this.chart.polar){a=a||this.points;for(g=0;gb.center[1]}),r(q,\\\"alignDataLabel\\\",function(a,c,d,k,e,f){this.chart.polar?(a=c.rectPlotX/Math.PI*180,null===k.align&&\\n(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),g.alignDataLabel.call(this,c,d,k,e,f)):a.call(this,c,d,k,e,f)})),r(m,\\\"getCoordinates\\\",function(a,c){var b=this.chart,g={xAxis:[],yAxis:[]};b.polar?p(b.axes,function(a){var d=a.isXAxis,e=a.center,k=c.chartX-e[0]-b.plotLeft,e=c.chartY-e[1]-b.plotTop;g[d?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(d?Math.PI-Math.atan2(k,e):Math.sqrt(Math.pow(k,2)+Math.pow(e,\\n2)),!0)})}):g=a.call(this,c);return g}),a.SVGRenderer.prototype.clipCircle=function(b,c,d){var g=a.uniqueKey(),e=this.createElement(\\\"clipPath\\\").attr({id:g}).add(this.defs);b=this.circle(b,c,d).add(e);b.id=g;b.clipPath=e;return b},a.addEvent(a.Chart,\\\"getAxes\\\",function(){this.pane||(this.pane=[]);p(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this)}),a.addEvent(a.Chart,\\\"afterDrawChartBox\\\",function(){p(this.pane,function(a){a.render()})}),r(a.Chart.prototype,\\\"get\\\",function(b,c){return a.find(this.pane,\\nfunction(a){return a.options.id===c})||b.call(this,c)}))})(w)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1523,17 +1534,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1546,7 +1557,6 @@ " chart: {\n", " type: 'boxplot'\n", " },\n", - " modules: ['highcharts-more'],\n", " title: {\n", " text: 'Highcharts Box Plot Example'\n", " },\n", @@ -1591,7 +1601,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(df, opts)\n", + "chart = Daru::View::Plot.new(df, opts, modules: ['highcharts-more'])\n", "chart.show_in_iruby" ] }, @@ -1607,7 +1617,7 @@ " /* BEGIN modules/vector.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Vector plot series module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", @@ -1628,7 +1638,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/vector.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Vector plot series module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(d){\\\"object\\\"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){var d=c.each,e=c.seriesType;e(\\\"vector\\\",\\\"scatter\\\",{lineWidth:2,marker:null,rotationOrigin:\\\"center\\\",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:\\\"\\\\x3cb\\\\x3e[{point.x}, {point.y}]\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eLength: \\\\x3cb\\\\x3e{point.length}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eDirection: \\\\x3cb\\\\x3e{point.direction}\\\\u00b0\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\"},vectorLength:20},{pointArrayMap:[\\\"y\\\",\\\"length\\\",\\\"direction\\\"],parallelArrays:[\\\"x\\\",\\n\\\"y\\\",\\\"length\\\",\\\"direction\\\"],pointAttribs:function(b,a){var c=this.options;b=b.color||this.color;var d=this.options.lineWidth;a&&(b=c.states[a].color||b,d=(c.states[a].lineWidth||d)+(c.states[a].lineWidthPlus||0));return{stroke:b,\\\"stroke-width\\\":d}},markerAttribs:c.noop,getSymbol:c.noop,arrow:function(b){var a={start:10,center:0,end:-10}[this.options.rotationOrigin]||0;b=b.length/this.lengthMax*this.options.vectorLength/20;return[\\\"M\\\",0,7*b+a,\\\"L\\\",-1.5*b,7*b+a,0,10*b+a,1.5*b,7*b+a,0,7*b+a,0,-10*b+a]},translate:function(){c.Series.prototype.translate.call(this);\\nthis.lengthMax=c.arrayMax(this.lengthData)},drawPoints:function(){var b=this.chart;d(this.points,function(a){var c=a.plotX,d=a.plotY;b.isInsidePlot(c,d,b.inverted)?(a.graphic||(a.graphic=this.chart.renderer.path().add(this.markerGroup)),a.graphic.attr({d:this.arrow(a),translateX:c,translateY:d,rotation:a.direction}).attr(this.pointAttribs(a))):a.graphic&&(a.graphic=a.graphic.destroy())},this)},drawGraph:c.noop,animate:function(b){b?this.markerGroup.attr({opacity:.01}):(this.markerGroup.animate({opacity:1},\\nc.animObject(this.options.animation)),this.animate=null)}})})(d)});\\n\\n /* END modules/vector.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/vector.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Vector plot series module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(d){\\\"object\\\"===typeof module&&module.exports?module.exports=d:d(Highcharts)})(function(d){(function(c){var d=c.each,e=c.seriesType;e(\\\"vector\\\",\\\"scatter\\\",{lineWidth:2,marker:null,rotationOrigin:\\\"center\\\",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:\\\"\\\\x3cb\\\\x3e[{point.x}, {point.y}]\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eLength: \\\\x3cb\\\\x3e{point.length}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eDirection: \\\\x3cb\\\\x3e{point.direction}\\\\u00b0\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e\\\"},vectorLength:20},{pointArrayMap:[\\\"y\\\",\\\"length\\\",\\\"direction\\\"],parallelArrays:[\\\"x\\\",\\n\\\"y\\\",\\\"length\\\",\\\"direction\\\"],pointAttribs:function(b,a){var c=this.options;b=b.color||this.color;var d=this.options.lineWidth;a&&(b=c.states[a].color||b,d=(c.states[a].lineWidth||d)+(c.states[a].lineWidthPlus||0));return{stroke:b,\\\"stroke-width\\\":d}},markerAttribs:c.noop,getSymbol:c.noop,arrow:function(b){var a={start:10,center:0,end:-10}[this.options.rotationOrigin]||0;b=b.length/this.lengthMax*this.options.vectorLength/20;return[\\\"M\\\",0,7*b+a,\\\"L\\\",-1.5*b,7*b+a,0,10*b+a,1.5*b,7*b+a,0,7*b+a,0,-10*b+a]},translate:function(){c.Series.prototype.translate.call(this);\\nthis.lengthMax=c.arrayMax(this.lengthData)},drawPoints:function(){var b=this.chart;d(this.points,function(a){var c=a.plotX,d=a.plotY;b.isInsidePlot(c,d,b.inverted)?(a.graphic||(a.graphic=this.chart.renderer.path().add(this.markerGroup)),a.graphic.attr({d:this.arrow(a),translateX:c,translateY:d,rotation:a.direction}).attr(this.pointAttribs(a))):a.graphic&&(a.graphic=a.graphic.destroy())},this)},drawGraph:c.noop,animate:function(b){b?this.markerGroup.attr({opacity:.01}):(this.markerGroup.animate({opacity:1},\\nc.animObject(this.options.animation)),this.animate=null)}})})(d)});\\n\\n /* END modules/vector.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1640,17 +1650,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1663,7 +1673,6 @@ " chart: {\n", " type: 'vector'\n", " },\n", - " modules: ['modules/vector'],\n", " title: {\n", " text: 'Highcharts Vector plot'\n", " },\n", @@ -2042,7 +2051,7 @@ " [95, 95, 10, 342]\n", " ]\n", "\n", - "chart = Daru::View::Plot.new(data, opts)\n", + "chart = Daru::View::Plot.new(data, opts, modules: ['modules/vector'])\n", "chart.show_in_iruby" ] }, @@ -2058,7 +2067,7 @@ " /* BEGIN modules/windbarb.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Wind barb series module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", @@ -2083,7 +2092,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/windbarb.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Wind barb series module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(k){\\\"object\\\"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){var A=function(f){var k=f.each,r=f.defined,t=f.seriesTypes,d=f.stableSort;return{getPlotBox:function(){return f.Series.prototype.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){t.column.prototype.translate.apply(this);var c=this.options,e=this.chart,b=this.points,a=b.length-1,g,f,h=c.onSeries,h=h&&e.get(h),c=c.onKey||\\\"y\\\",z=h&&h.options.step,p=\\nh&&h.points,m=p&&p.length,v=e.inverted,n=this.xAxis,w=this.yAxis,x=0,l,y,q,u;if(h&&h.visible&&m)for(x=(h.pointXOffset||0)+(h.barW||0)/2,g=h.currentDataGrouping,y=p[m-1].x+(g?g.totalRange:0),d(b,function(b,a){return b.x-a.x}),c=\\\"plot\\\"+c[0].toUpperCase()+c.substr(1);m--&&b[a]&&!(l=p[m],g=b[a],g.y=l.y,l.x<=g.x&&void 0!==l[c]&&(g.x<=y&&(g.plotY=l[c],l.xa)););k(b,function(a,c){var d;a.plotX+=\\nx;if(void 0===a.plotY||v)0<=a.plotX&&a.plotX<=n.len?v?(a.plotY=n.translate(a.x,0,1,0,1),a.plotX=r(a.y)?w.translate(a.y,0,0,0,1):0):a.plotY=e.chartHeight-n.bottom-(n.opposite?n.height:0)+n.offset-w.top:a.shapeArgs={};(f=b[c-1])&&f.plotX===a.plotX&&(void 0===f.stackIndex&&(f.stackIndex=0),d=f.stackIndex+1);a.stackIndex=d});this.onSeries=h}}}(k);(function(f,k){var r=f.each,t=f.seriesType;t(\\\"windbarb\\\",\\\"column\\\",{lineWidth:2,onSeries:null,states:{hover:{lineWidthPlus:0}},tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.value}\\\\x3c/b\\\\x3e ({point.beaufort})\\\\x3cbr/\\\\x3e'},\\nvectorLength:20,yOffset:-20,xOffset:0},{pointArrayMap:[\\\"value\\\",\\\"direction\\\"],parallelArrays:[\\\"x\\\",\\\"value\\\",\\\"direction\\\"],beaufortName:\\\"Calm;Light air;Light breeze;Gentle breeze;Moderate breeze;Fresh breeze;Strong breeze;Near gale;Gale;Strong gale;Storm;Violent storm;Hurricane\\\".split(\\\";\\\"),beaufortFloor:[0,.3,1.6,3.4,5.5,8,10.8,13.9,17.2,20.8,24.5,28.5,32.7],trackerGroups:[\\\"markerGroup\\\"],pointAttribs:function(d,c){var e=this.options;d=d.color||this.color;var b=this.options.lineWidth;c&&(d=e.states[c].color||\\nd,b=(e.states[c].lineWidth||b)+(e.states[c].lineWidthPlus||0));return{stroke:d,\\\"stroke-width\\\":b}},markerAttribs:function(){},getPlotBox:k.getPlotBox,windArrow:function(d){var c=1.943844*d.value,e,b=this.options.vectorLength/20,a=-10;if(d.isNull)return[];if(0===d.beaufortLevel)return this.chart.renderer.symbols.circle(-10*b,-10*b,20*b,20*b);d=[\\\"M\\\",0,7*b,\\\"L\\\",-1.5*b,7*b,0,10*b,1.5*b,7*b,0,7*b,0,-10*b];e=(c-c%50)/50;if(0e.value);b++);e.beaufortLevel=b-1;e.beaufort=c[b-1]})},drawPoints:function(){var d=this.chart,c=this.yAxis,e=d.inverted,b=this.options.vectorLength/2;r(this.points,function(a){var g=\\na.plotX,f=a.plotY;d.isInsidePlot(g,0,!1)?(a.graphic||(a.graphic=this.chart.renderer.path().add(this.markerGroup)),a.graphic.attr({d:this.windArrow(a),translateX:g+this.options.xOffset,translateY:f+this.options.yOffset,rotation:a.direction}).attr(this.pointAttribs(a))):a.graphic&&(a.graphic=a.graphic.destroy());a.tooltipPos=[g+this.options.xOffset+(e&&!this.onSeries?b:0),f+this.options.yOffset-(e?0:b+c.pos-d.plotTop)]},this)},animate:function(d){d?this.markerGroup.attr({opacity:.01}):(this.markerGroup.animate({opacity:1},\\nf.animObject(this.options.animation)),this.animate=null)},invertGroups:f.noop},{isValid:function(){return f.isNumber(this.value)&&0<=this.value}})})(k,A)});\\n\\n /* END modules/windbarb.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/windbarb.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Wind barb series module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(k){\\\"object\\\"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){var A=function(f){var k=f.each,r=f.defined,t=f.seriesTypes,d=f.stableSort;return{getPlotBox:function(){return f.Series.prototype.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){t.column.prototype.translate.apply(this);var c=this.options,e=this.chart,b=this.points,a=b.length-1,g,f,h=c.onSeries,h=h&&e.get(h),c=c.onKey||\\\"y\\\",z=h&&h.options.step,p=\\nh&&h.points,m=p&&p.length,v=e.inverted,n=this.xAxis,w=this.yAxis,x=0,l,y,q,u;if(h&&h.visible&&m)for(x=(h.pointXOffset||0)+(h.barW||0)/2,g=h.currentDataGrouping,y=p[m-1].x+(g?g.totalRange:0),d(b,function(b,a){return b.x-a.x}),c=\\\"plot\\\"+c[0].toUpperCase()+c.substr(1);m--&&b[a]&&!(l=p[m],g=b[a],g.y=l.y,l.x<=g.x&&void 0!==l[c]&&(g.x<=y&&(g.plotY=l[c],l.xa)););k(b,function(a,c){var d;a.plotX+=\\nx;if(void 0===a.plotY||v)0<=a.plotX&&a.plotX<=n.len?v?(a.plotY=n.translate(a.x,0,1,0,1),a.plotX=r(a.y)?w.translate(a.y,0,0,0,1):0):a.plotY=e.chartHeight-n.bottom-(n.opposite?n.height:0)+n.offset-w.top:a.shapeArgs={};(f=b[c-1])&&f.plotX===a.plotX&&(void 0===f.stackIndex&&(f.stackIndex=0),d=f.stackIndex+1);a.stackIndex=d});this.onSeries=h}}}(k);(function(f,k){var r=f.each,t=f.seriesType;t(\\\"windbarb\\\",\\\"column\\\",{lineWidth:2,onSeries:null,states:{hover:{lineWidthPlus:0}},tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.value}\\\\x3c/b\\\\x3e ({point.beaufort})\\\\x3cbr/\\\\x3e'},\\nvectorLength:20,yOffset:-20,xOffset:0},{pointArrayMap:[\\\"value\\\",\\\"direction\\\"],parallelArrays:[\\\"x\\\",\\\"value\\\",\\\"direction\\\"],beaufortName:\\\"Calm;Light air;Light breeze;Gentle breeze;Moderate breeze;Fresh breeze;Strong breeze;Near gale;Gale;Strong gale;Storm;Violent storm;Hurricane\\\".split(\\\";\\\"),beaufortFloor:[0,.3,1.6,3.4,5.5,8,10.8,13.9,17.2,20.8,24.5,28.5,32.7],trackerGroups:[\\\"markerGroup\\\"],pointAttribs:function(d,c){var e=this.options;d=d.color||this.color;var b=this.options.lineWidth;c&&(d=e.states[c].color||\\nd,b=(e.states[c].lineWidth||b)+(e.states[c].lineWidthPlus||0));return{stroke:d,\\\"stroke-width\\\":b}},markerAttribs:function(){},getPlotBox:k.getPlotBox,windArrow:function(d){var c=1.943844*d.value,e,b=this.options.vectorLength/20,a=-10;if(d.isNull)return[];if(0===d.beaufortLevel)return this.chart.renderer.symbols.circle(-10*b,-10*b,20*b,20*b);d=[\\\"M\\\",0,7*b,\\\"L\\\",-1.5*b,7*b,0,10*b,1.5*b,7*b,0,7*b,0,-10*b];e=(c-c%50)/50;if(0e.value);b++);e.beaufortLevel=b-1;e.beaufort=c[b-1]})},drawPoints:function(){var d=this.chart,c=this.yAxis,e=d.inverted,b=this.options.vectorLength/2;r(this.points,function(a){var g=\\na.plotX,f=a.plotY;d.isInsidePlot(g,0,!1)?(a.graphic||(a.graphic=this.chart.renderer.path().add(this.markerGroup)),a.graphic.attr({d:this.windArrow(a),translateX:g+this.options.xOffset,translateY:f+this.options.yOffset,rotation:a.direction}).attr(this.pointAttribs(a))):a.graphic&&(a.graphic=a.graphic.destroy());a.tooltipPos=[g+this.options.xOffset+(e&&!this.onSeries?b:0),f+this.options.yOffset-(e?0:b+c.pos-d.plotTop)]},this)},animate:function(d){d?this.markerGroup.attr({opacity:.01}):(this.markerGroup.animate({opacity:1},\\nf.animObject(this.options.animation)),this.animate=null)},invertGroups:f.noop},{isValid:function(){return f.isNumber(this.value)&&0<=this.value}})})(k,A)});\\n\\n /* END modules/windbarb.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -2095,17 +2104,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -2118,8 +2127,6 @@ " chart: {\n", " type: 'windbarb'\n", " },\n", - " \n", - " modules: ['modules/windbarb'],\n", "\n", " title: {\n", " text: 'Highcharts Wind Barbs'\n", @@ -2165,7 +2172,7 @@ " }\n", ")\n", "\n", - "chart = Daru::View::Plot.new(df, opts)\n", + "chart = Daru::View::Plot.new(df, opts, modules: ['modules/windbarb'])\n", "chart.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/Highcharts - line graphs.ipynb b/spec/dummy_iruby/Highcharts - line graphs.ipynb index b3aee5e..6c6a4e1 100644 --- a/spec/dummy_iruby/Highcharts - line graphs.ipynb +++ b/spec/dummy_iruby/Highcharts - line graphs.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bnil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"jugbvlcxewo\">>" + "#nil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"nvqwgdhauik\", @user_options={}>>" ] }, "execution_count": 3, @@ -956,17 +966,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -986,7 +996,7 @@ { "data": { "text/plain": [ - "#nil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"ijoudfarnse\">>" + "#nil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"nbkcftohxjy\", @user_options={}>>" ] }, "execution_count": 6, @@ -1083,17 +1093,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1133,21 +1143,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1244,21 +1254,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -1302,19 +1312,19 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 11, @@ -1422,17 +1432,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, @@ -1602,17 +1612,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 13, diff --git a/spec/dummy_iruby/Highcharts - line graphs2.ipynb b/spec/dummy_iruby/Highcharts - line graphs2.ipynb index 689f074..4df9a60 100644 --- a/spec/dummy_iruby/Highcharts - line graphs2.ipynb +++ b/spec/dummy_iruby/Highcharts - line graphs2.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bnil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"ouelzcgakis\">>" + "#nil, :name=>nil, :data=>[]}], @options={:title=>{:text=>nil}, :legend=>{:layout=>\"vertical\", :style=>{}}, :xAxis=>{}, :yAxis=>{:title=>{:text=>nil}, :labels=>{}}, :tooltip=>{:enabled=>true}, :credits=>{:enabled=>false}, :plotOptions=>{:areaspline=>{}}, :chart=>{:defaultSeriesType=>\"line\", :renderTo=>nil}, :subtitle=>{}}, @html_options={}, @placeholder=\"coqypflswkg\", @user_options={}>>" ] }, "execution_count": 3, @@ -920,17 +930,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -988,17 +998,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1078,18 +1088,18 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, diff --git a/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb b/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb index ab3b4b3..2be1100 100644 --- a/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb +++ b/spec/dummy_iruby/Highcharts - scatter -bubble charts.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"type\": \"scatter\",\"zoomType\": \"xy\",\"renderTo\": \"pbdarftejlc\" },\"title\": { \"text\": \"Height Versus Weight of 507 Individuals by Gender\" },\"subtitle\": { \"text\": \"Source: Heinz 2003\" },\"xAxis\": { \"title\": { \"enabled\": true,\"text\": \"Height (cm)\" },\"startOnTick\": true,\"endOnTick\": true,\"showLastLabel\": true },\"yAxis\": { \"title\": { \"text\": \"Weight (kg)\" } },\"legend\": { \"layout\": \"vertical\",\"align\": \"left\",\"verticalAlign\": \"top\",\"x\": 100,\"y\": 70,\"floating\": true,\"backgroundColor\": (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF',\"borderWidth\": 1 },\"plotOptions\": { \"scatter\": { \"marker\": { \"radius\": 5,\"states\": { \"hover\": { \"enabled\": true,\"lineColor\": \"rgb(100,100,100)\" } } },\"states\": { \"hover\": { \"marker\": { \"enabled\": false } } },\"tooltip\": { \"headerFormat\": \"{series.name}
\",\"pointFormat\": \"{point.x} cm, {point.y} kg\" } } },\"series\": [{ \"name\": \"Female\",\"color\": \"rgba(223, 83, 83, .5)\",\"data\": [ [ 161.2,51.6 ],[ 167.5,59.0 ],[ 159.5,49.2 ],[ 157.0,63.0 ],[ 155.8,53.6 ],[ 170.0,59.0 ],[ 159.1,47.6 ],[ 166.0,69.8 ],[ 176.2,66.8 ],[ 160.2,75.2 ],[ 172.5,55.2 ],[ 170.9,54.2 ],[ 172.9,62.5 ],[ 153.4,42.0 ],[ 160.0,50.0 ],[ 147.2,49.8 ],[ 168.2,49.2 ],[ 175.0,73.2 ],[ 157.0,47.8 ],[ 167.6,68.8 ],[ 159.5,50.6 ],[ 175.0,82.5 ],[ 166.8,57.2 ],[ 176.5,87.8 ],[ 170.2,72.8 ],[ 174.0,54.5 ],[ 173.0,59.8 ],[ 179.9,67.3 ],[ 170.5,67.8 ],[ 160.0,47.0 ],[ 154.4,46.2 ],[ 162.0,55.0 ],[ 176.5,83.0 ],[ 160.0,54.4 ],[ 152.0,45.8 ],[ 162.1,53.6 ],[ 170.0,73.2 ],[ 160.2,52.1 ],[ 161.3,67.9 ],[ 166.4,56.6 ],[ 168.9,62.3 ],[ 163.8,58.5 ],[ 167.6,54.5 ],[ 160.0,50.2 ],[ 161.3,60.3 ],[ 167.6,58.3 ],[ 165.1,56.2 ],[ 160.0,50.2 ],[ 170.0,72.9 ],[ 157.5,59.8 ],[ 167.6,61.0 ],[ 160.7,69.1 ],[ 163.2,55.9 ],[ 152.4,46.5 ],[ 157.5,54.3 ],[ 168.3,54.8 ],[ 180.3,60.7 ],[ 165.5,60.0 ],[ 165.0,62.0 ],[ 164.5,60.3 ],[ 156.0,52.7 ],[ 160.0,74.3 ],[ 163.0,62.0 ],[ 165.7,73.1 ],[ 161.0,80.0 ],[ 162.0,54.7 ],[ 166.0,53.2 ],[ 174.0,75.7 ],[ 172.7,61.1 ],[ 167.6,55.7 ],[ 151.1,48.7 ],[ 164.5,52.3 ],[ 163.5,50.0 ],[ 152.0,59.3 ],[ 169.0,62.5 ],[ 164.0,55.7 ],[ 161.2,54.8 ],[ 155.0,45.9 ],[ 170.0,70.6 ],[ 176.2,67.2 ],[ 170.0,69.4 ],[ 162.5,58.2 ],[ 170.3,64.8 ],[ 164.1,71.6 ],[ 169.5,52.8 ],[ 163.2,59.8 ],[ 154.5,49.0 ],[ 159.8,50.0 ],[ 173.2,69.2 ],[ 170.0,55.9 ],[ 161.4,63.4 ],[ 169.0,58.2 ],[ 166.2,58.6 ],[ 159.4,45.7 ],[ 162.5,52.2 ],[ 159.0,48.6 ],[ 162.8,57.8 ],[ 159.0,55.6 ],[ 179.8,66.8 ],[ 162.9,59.4 ],[ 161.0,53.6 ],[ 151.1,73.2 ],[ 168.2,53.4 ],[ 168.9,69.0 ],[ 173.2,58.4 ],[ 171.8,56.2 ],[ 178.0,70.6 ],[ 164.3,59.8 ],[ 163.0,72.0 ],[ 168.5,65.2 ],[ 166.8,56.6 ],[ 172.7,105.2 ],[ 163.5,51.8 ],[ 169.4,63.4 ],[ 167.8,59.0 ],[ 159.5,47.6 ],[ 167.6,63.0 ],[ 161.2,55.2 ],[ 160.0,45.0 ],[ 163.2,54.0 ],[ 162.2,50.2 ],[ 161.3,60.2 ],[ 149.5,44.8 ],[ 157.5,58.8 ],[ 163.2,56.4 ],[ 172.7,62.0 ],[ 155.0,49.2 ],[ 156.5,67.2 ],[ 164.0,53.8 ],[ 160.9,54.4 ],[ 162.8,58.0 ],[ 167.0,59.8 ],[ 160.0,54.8 ],[ 160.0,43.2 ],[ 168.9,60.5 ],[ 158.2,46.4 ],[ 156.0,64.4 ],[ 160.0,48.8 ],[ 167.1,62.2 ],[ 158.0,55.5 ],[ 167.6,57.8 ],[ 156.0,54.6 ],[ 162.1,59.2 ],[ 173.4,52.7 ],[ 159.8,53.2 ],[ 170.5,64.5 ],[ 159.2,51.8 ],[ 157.5,56.0 ],[ 161.3,63.6 ],[ 162.6,63.2 ],[ 160.0,59.5 ],[ 168.9,56.8 ],[ 165.1,64.1 ],[ 162.6,50.0 ],[ 165.1,72.3 ],[ 166.4,55.0 ],[ 160.0,55.9 ],[ 152.4,60.4 ],[ 170.2,69.1 ],[ 162.6,84.5 ],[ 170.2,55.9 ],[ 158.8,55.5 ],[ 172.7,69.5 ],[ 167.6,76.4 ],[ 162.6,61.4 ],[ 167.6,65.9 ],[ 156.2,58.6 ],[ 175.2,66.8 ],[ 172.1,56.6 ],[ 162.6,58.6 ],[ 160.0,55.9 ],[ 165.1,59.1 ],[ 182.9,81.8 ],[ 166.4,70.7 ],[ 165.1,56.8 ],[ 177.8,60.0 ],[ 165.1,58.2 ],[ 175.3,72.7 ],[ 154.9,54.1 ],[ 158.8,49.1 ],[ 172.7,75.9 ],[ 168.9,55.0 ],[ 161.3,57.3 ],[ 167.6,55.0 ],[ 165.1,65.5 ],[ 175.3,65.5 ],[ 157.5,48.6 ],[ 163.8,58.6 ],[ 167.6,63.6 ],[ 165.1,55.2 ],[ 165.1,62.7 ],[ 168.9,56.6 ],[ 162.6,53.9 ],[ 164.5,63.2 ],[ 176.5,73.6 ],[ 168.9,62.0 ],[ 175.3,63.6 ],[ 159.4,53.2 ],[ 160.0,53.4 ],[ 170.2,55.0 ],[ 162.6,70.5 ],[ 167.6,54.5 ],[ 162.6,54.5 ],[ 160.7,55.9 ],[ 160.0,59.0 ],[ 157.5,63.6 ],[ 162.6,54.5 ],[ 152.4,47.3 ],[ 170.2,67.7 ],[ 165.1,80.9 ],[ 172.7,70.5 ],[ 165.1,60.9 ],[ 170.2,63.6 ],[ 170.2,54.5 ],[ 170.2,59.1 ],[ 161.3,70.5 ],[ 167.6,52.7 ],[ 167.6,62.7 ],[ 165.1,86.3 ],[ 162.6,66.4 ],[ 152.4,67.3 ],[ 168.9,63.0 ],[ 170.2,73.6 ],[ 175.2,62.3 ],[ 175.2,57.7 ],[ 160.0,55.4 ],[ 165.1,104.1 ],[ 174.0,55.5 ],[ 170.2,77.3 ],[ 160.0,80.5 ],[ 167.6,64.5 ],[ 167.6,72.3 ],[ 167.6,61.4 ],[ 154.9,58.2 ],[ 162.6,81.8 ],[ 175.3,63.6 ],[ 171.4,53.4 ],[ 157.5,54.5 ],[ 165.1,53.6 ],[ 160.0,60.0 ],[ 174.0,73.6 ],[ 162.6,61.4 ],[ 174.0,55.5 ],[ 162.6,63.6 ],[ 161.3,60.9 ],[ 156.2,60.0 ],[ 149.9,46.8 ],[ 169.5,57.3 ],[ 160.0,64.1 ],[ 175.3,63.6 ],[ 169.5,67.3 ],[ 160.0,75.5 ],[ 172.7,68.2 ],[ 162.6,61.4 ],[ 157.5,76.8 ],[ 176.5,71.8 ],[ 164.4,55.5 ],[ 160.7,48.6 ],[ 174.0,66.4 ],[ 163.8,67.3 ] ] },{ \"name\": \"Male\",\"color\": \"rgba(119, 152, 191, .5)\",\"data\": [ [ 174.0,65.6 ],[ 175.3,71.8 ],[ 193.5,80.7 ],[ 186.5,72.6 ],[ 187.2,78.8 ],[ 181.5,74.8 ],[ 184.0,86.4 ],[ 184.5,78.4 ],[ 175.0,62.0 ],[ 184.0,81.6 ],[ 180.0,76.6 ],[ 177.8,83.6 ],[ 192.0,90.0 ],[ 176.0,74.6 ],[ 174.0,71.0 ],[ 184.0,79.6 ],[ 192.7,93.8 ],[ 171.5,70.0 ],[ 173.0,72.4 ],[ 176.0,85.9 ],[ 176.0,78.8 ],[ 180.5,77.8 ],[ 172.7,66.2 ],[ 176.0,86.4 ],[ 173.5,81.8 ],[ 178.0,89.6 ],[ 180.3,82.8 ],[ 180.3,76.4 ],[ 164.5,63.2 ],[ 173.0,60.9 ],[ 183.5,74.8 ],[ 175.5,70.0 ],[ 188.0,72.4 ],[ 189.2,84.1 ],[ 172.8,69.1 ],[ 170.0,59.5 ],[ 182.0,67.2 ],[ 170.0,61.3 ],[ 177.8,68.6 ],[ 184.2,80.1 ],[ 186.7,87.8 ],[ 171.4,84.7 ],[ 172.7,73.4 ],[ 175.3,72.1 ],[ 180.3,82.6 ],[ 182.9,88.7 ],[ 188.0,84.1 ],[ 177.2,94.1 ],[ 172.1,74.9 ],[ 167.0,59.1 ],[ 169.5,75.6 ],[ 174.0,86.2 ],[ 172.7,75.3 ],[ 182.2,87.1 ],[ 164.1,55.2 ],[ 163.0,57.0 ],[ 171.5,61.4 ],[ 184.2,76.8 ],[ 174.0,86.8 ],[ 174.0,72.2 ],[ 177.0,71.6 ],[ 186.0,84.8 ],[ 167.0,68.2 ],[ 171.8,66.1 ],[ 182.0,72.0 ],[ 167.0,64.6 ],[ 177.8,74.8 ],[ 164.5,70.0 ],[ 192.0,101.6 ],[ 175.5,63.2 ],[ 171.2,79.1 ],[ 181.6,78.9 ],[ 167.4,67.7 ],[ 181.1,66.0 ],[ 177.0,68.2 ],[ 174.5,63.9 ],[ 177.5,72.0 ],[ 170.5,56.8 ],[ 182.4,74.5 ],[ 197.1,90.9 ],[ 180.1,93.0 ],[ 175.5,80.9 ],[ 180.6,72.7 ],[ 184.4,68.0 ],[ 175.5,70.9 ],[ 180.6,72.5 ],[ 177.0,72.5 ],[ 177.1,83.4 ],[ 181.6,75.5 ],[ 176.5,73.0 ],[ 175.0,70.2 ],[ 174.0,73.4 ],[ 165.1,70.5 ],[ 177.0,68.9 ],[ 192.0,102.3 ],[ 176.5,68.4 ],[ 169.4,65.9 ],[ 182.1,75.7 ],[ 179.8,84.5 ],[ 175.3,87.7 ],[ 184.9,86.4 ],[ 177.3,73.2 ],[ 167.4,53.9 ],[ 178.1,72.0 ],[ 168.9,55.5 ],[ 157.2,58.4 ],[ 180.3,83.2 ],[ 170.2,72.7 ],[ 177.8,64.1 ],[ 172.7,72.3 ],[ 165.1,65.0 ],[ 186.7,86.4 ],[ 165.1,65.0 ],[ 174.0,88.6 ],[ 175.3,84.1 ],[ 185.4,66.8 ],[ 177.8,75.5 ],[ 180.3,93.2 ],[ 180.3,82.7 ],[ 177.8,58.0 ],[ 177.8,79.5 ],[ 177.8,78.6 ],[ 177.8,71.8 ],[ 177.8,116.4 ],[ 163.8,72.2 ],[ 188.0,83.6 ],[ 198.1,85.5 ],[ 175.3,90.9 ],[ 166.4,85.9 ],[ 190.5,89.1 ],[ 166.4,75.0 ],[ 177.8,77.7 ],[ 179.7,86.4 ],[ 172.7,90.9 ],[ 190.5,73.6 ],[ 185.4,76.4 ],[ 168.9,69.1 ],[ 167.6,84.5 ],[ 175.3,64.5 ],[ 170.2,69.1 ],[ 190.5,108.6 ],[ 177.8,86.4 ],[ 190.5,80.9 ],[ 177.8,87.7 ],[ 184.2,94.5 ],[ 176.5,80.2 ],[ 177.8,72.0 ],[ 180.3,71.4 ],[ 171.4,72.7 ],[ 172.7,84.1 ],[ 172.7,76.8 ],[ 177.8,63.6 ],[ 177.8,80.9 ],[ 182.9,80.9 ],[ 170.2,85.5 ],[ 167.6,68.6 ],[ 175.3,67.7 ],[ 165.1,66.4 ],[ 185.4,102.3 ],[ 181.6,70.5 ],[ 172.7,95.9 ],[ 190.5,84.1 ],[ 179.1,87.3 ],[ 175.3,71.8 ],[ 170.2,65.9 ],[ 193.0,95.9 ],[ 171.4,91.4 ],[ 177.8,81.8 ],[ 177.8,96.8 ],[ 167.6,69.1 ],[ 167.6,82.7 ],[ 180.3,75.5 ],[ 182.9,79.5 ],[ 176.5,73.6 ],[ 186.7,91.8 ],[ 188.0,84.1 ],[ 188.0,85.9 ],[ 177.8,81.8 ],[ 174.0,82.5 ],[ 177.8,80.5 ],[ 171.4,70.0 ],[ 185.4,81.8 ],[ 185.4,84.1 ],[ 188.0,90.5 ],[ 188.0,91.4 ],[ 182.9,89.1 ],[ 176.5,85.0 ],[ 175.3,69.1 ],[ 175.3,73.6 ],[ 188.0,80.5 ],[ 188.0,82.7 ],[ 175.3,86.4 ],[ 170.5,67.7 ],[ 179.1,92.7 ],[ 177.8,93.6 ],[ 175.3,70.9 ],[ 182.9,75.0 ],[ 170.8,93.2 ],[ 188.0,93.2 ],[ 180.3,77.7 ],[ 177.8,61.4 ],[ 185.4,94.1 ],[ 168.9,75.0 ],[ 185.4,83.6 ],[ 180.3,85.5 ],[ 174.0,73.9 ],[ 167.6,66.8 ],[ 182.9,87.3 ],[ 160.0,72.3 ],[ 180.3,88.6 ],[ 167.6,75.5 ],[ 186.7,101.4 ],[ 175.3,91.1 ],[ 175.3,67.3 ],[ 175.9,77.7 ],[ 175.3,81.8 ],[ 179.1,75.5 ],[ 181.6,84.5 ],[ 177.8,76.6 ],[ 182.9,85.0 ],[ 177.8,102.5 ],[ 184.2,77.3 ],[ 179.1,71.8 ],[ 176.5,87.9 ],[ 188.0,94.3 ],[ 174.0,70.9 ],[ 167.6,64.5 ],[ 170.2,77.3 ],[ 167.6,72.3 ],[ 188.0,87.3 ],[ 174.0,80.0 ],[ 176.5,82.3 ],[ 180.3,73.6 ],[ 167.6,74.1 ],[ 188.0,85.9 ],[ 180.3,73.2 ],[ 167.6,76.3 ],[ 183.0,65.9 ],[ 183.0,90.9 ],[ 179.1,89.1 ],[ 170.2,62.3 ],[ 177.8,82.7 ],[ 179.1,79.1 ],[ 190.5,98.2 ],[ 177.8,84.1 ],[ 180.3,83.2 ],[ 180.3,83.2 ] ] }] };\n", + " var options = { \"chart\": { \"type\": \"scatter\",\"zoomType\": \"xy\",\"renderTo\": \"kyoawtmxrnl\" },\"title\": { \"text\": \"Height Versus Weight of 507 Individuals by Gender\" },\"subtitle\": { \"text\": \"Source: Heinz 2003\" },\"xAxis\": { \"title\": { \"enabled\": true,\"text\": \"Height (cm)\" },\"startOnTick\": true,\"endOnTick\": true,\"showLastLabel\": true },\"yAxis\": { \"title\": { \"text\": \"Weight (kg)\" } },\"legend\": { \"layout\": \"vertical\",\"align\": \"left\",\"verticalAlign\": \"top\",\"x\": 100,\"y\": 70,\"floating\": true,\"backgroundColor\": (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF',\"borderWidth\": 1 },\"plotOptions\": { \"scatter\": { \"marker\": { \"radius\": 5,\"states\": { \"hover\": { \"enabled\": true,\"lineColor\": \"rgb(100,100,100)\" } } },\"states\": { \"hover\": { \"marker\": { \"enabled\": false } } },\"tooltip\": { \"headerFormat\": \"{series.name}
\",\"pointFormat\": \"{point.x} cm, {point.y} kg\" } } },\"series\": [{ \"name\": \"Female\",\"color\": \"rgba(223, 83, 83, .5)\",\"data\": [ [ 161.2,51.6 ],[ 167.5,59.0 ],[ 159.5,49.2 ],[ 157.0,63.0 ],[ 155.8,53.6 ],[ 170.0,59.0 ],[ 159.1,47.6 ],[ 166.0,69.8 ],[ 176.2,66.8 ],[ 160.2,75.2 ],[ 172.5,55.2 ],[ 170.9,54.2 ],[ 172.9,62.5 ],[ 153.4,42.0 ],[ 160.0,50.0 ],[ 147.2,49.8 ],[ 168.2,49.2 ],[ 175.0,73.2 ],[ 157.0,47.8 ],[ 167.6,68.8 ],[ 159.5,50.6 ],[ 175.0,82.5 ],[ 166.8,57.2 ],[ 176.5,87.8 ],[ 170.2,72.8 ],[ 174.0,54.5 ],[ 173.0,59.8 ],[ 179.9,67.3 ],[ 170.5,67.8 ],[ 160.0,47.0 ],[ 154.4,46.2 ],[ 162.0,55.0 ],[ 176.5,83.0 ],[ 160.0,54.4 ],[ 152.0,45.8 ],[ 162.1,53.6 ],[ 170.0,73.2 ],[ 160.2,52.1 ],[ 161.3,67.9 ],[ 166.4,56.6 ],[ 168.9,62.3 ],[ 163.8,58.5 ],[ 167.6,54.5 ],[ 160.0,50.2 ],[ 161.3,60.3 ],[ 167.6,58.3 ],[ 165.1,56.2 ],[ 160.0,50.2 ],[ 170.0,72.9 ],[ 157.5,59.8 ],[ 167.6,61.0 ],[ 160.7,69.1 ],[ 163.2,55.9 ],[ 152.4,46.5 ],[ 157.5,54.3 ],[ 168.3,54.8 ],[ 180.3,60.7 ],[ 165.5,60.0 ],[ 165.0,62.0 ],[ 164.5,60.3 ],[ 156.0,52.7 ],[ 160.0,74.3 ],[ 163.0,62.0 ],[ 165.7,73.1 ],[ 161.0,80.0 ],[ 162.0,54.7 ],[ 166.0,53.2 ],[ 174.0,75.7 ],[ 172.7,61.1 ],[ 167.6,55.7 ],[ 151.1,48.7 ],[ 164.5,52.3 ],[ 163.5,50.0 ],[ 152.0,59.3 ],[ 169.0,62.5 ],[ 164.0,55.7 ],[ 161.2,54.8 ],[ 155.0,45.9 ],[ 170.0,70.6 ],[ 176.2,67.2 ],[ 170.0,69.4 ],[ 162.5,58.2 ],[ 170.3,64.8 ],[ 164.1,71.6 ],[ 169.5,52.8 ],[ 163.2,59.8 ],[ 154.5,49.0 ],[ 159.8,50.0 ],[ 173.2,69.2 ],[ 170.0,55.9 ],[ 161.4,63.4 ],[ 169.0,58.2 ],[ 166.2,58.6 ],[ 159.4,45.7 ],[ 162.5,52.2 ],[ 159.0,48.6 ],[ 162.8,57.8 ],[ 159.0,55.6 ],[ 179.8,66.8 ],[ 162.9,59.4 ],[ 161.0,53.6 ],[ 151.1,73.2 ],[ 168.2,53.4 ],[ 168.9,69.0 ],[ 173.2,58.4 ],[ 171.8,56.2 ],[ 178.0,70.6 ],[ 164.3,59.8 ],[ 163.0,72.0 ],[ 168.5,65.2 ],[ 166.8,56.6 ],[ 172.7,105.2 ],[ 163.5,51.8 ],[ 169.4,63.4 ],[ 167.8,59.0 ],[ 159.5,47.6 ],[ 167.6,63.0 ],[ 161.2,55.2 ],[ 160.0,45.0 ],[ 163.2,54.0 ],[ 162.2,50.2 ],[ 161.3,60.2 ],[ 149.5,44.8 ],[ 157.5,58.8 ],[ 163.2,56.4 ],[ 172.7,62.0 ],[ 155.0,49.2 ],[ 156.5,67.2 ],[ 164.0,53.8 ],[ 160.9,54.4 ],[ 162.8,58.0 ],[ 167.0,59.8 ],[ 160.0,54.8 ],[ 160.0,43.2 ],[ 168.9,60.5 ],[ 158.2,46.4 ],[ 156.0,64.4 ],[ 160.0,48.8 ],[ 167.1,62.2 ],[ 158.0,55.5 ],[ 167.6,57.8 ],[ 156.0,54.6 ],[ 162.1,59.2 ],[ 173.4,52.7 ],[ 159.8,53.2 ],[ 170.5,64.5 ],[ 159.2,51.8 ],[ 157.5,56.0 ],[ 161.3,63.6 ],[ 162.6,63.2 ],[ 160.0,59.5 ],[ 168.9,56.8 ],[ 165.1,64.1 ],[ 162.6,50.0 ],[ 165.1,72.3 ],[ 166.4,55.0 ],[ 160.0,55.9 ],[ 152.4,60.4 ],[ 170.2,69.1 ],[ 162.6,84.5 ],[ 170.2,55.9 ],[ 158.8,55.5 ],[ 172.7,69.5 ],[ 167.6,76.4 ],[ 162.6,61.4 ],[ 167.6,65.9 ],[ 156.2,58.6 ],[ 175.2,66.8 ],[ 172.1,56.6 ],[ 162.6,58.6 ],[ 160.0,55.9 ],[ 165.1,59.1 ],[ 182.9,81.8 ],[ 166.4,70.7 ],[ 165.1,56.8 ],[ 177.8,60.0 ],[ 165.1,58.2 ],[ 175.3,72.7 ],[ 154.9,54.1 ],[ 158.8,49.1 ],[ 172.7,75.9 ],[ 168.9,55.0 ],[ 161.3,57.3 ],[ 167.6,55.0 ],[ 165.1,65.5 ],[ 175.3,65.5 ],[ 157.5,48.6 ],[ 163.8,58.6 ],[ 167.6,63.6 ],[ 165.1,55.2 ],[ 165.1,62.7 ],[ 168.9,56.6 ],[ 162.6,53.9 ],[ 164.5,63.2 ],[ 176.5,73.6 ],[ 168.9,62.0 ],[ 175.3,63.6 ],[ 159.4,53.2 ],[ 160.0,53.4 ],[ 170.2,55.0 ],[ 162.6,70.5 ],[ 167.6,54.5 ],[ 162.6,54.5 ],[ 160.7,55.9 ],[ 160.0,59.0 ],[ 157.5,63.6 ],[ 162.6,54.5 ],[ 152.4,47.3 ],[ 170.2,67.7 ],[ 165.1,80.9 ],[ 172.7,70.5 ],[ 165.1,60.9 ],[ 170.2,63.6 ],[ 170.2,54.5 ],[ 170.2,59.1 ],[ 161.3,70.5 ],[ 167.6,52.7 ],[ 167.6,62.7 ],[ 165.1,86.3 ],[ 162.6,66.4 ],[ 152.4,67.3 ],[ 168.9,63.0 ],[ 170.2,73.6 ],[ 175.2,62.3 ],[ 175.2,57.7 ],[ 160.0,55.4 ],[ 165.1,104.1 ],[ 174.0,55.5 ],[ 170.2,77.3 ],[ 160.0,80.5 ],[ 167.6,64.5 ],[ 167.6,72.3 ],[ 167.6,61.4 ],[ 154.9,58.2 ],[ 162.6,81.8 ],[ 175.3,63.6 ],[ 171.4,53.4 ],[ 157.5,54.5 ],[ 165.1,53.6 ],[ 160.0,60.0 ],[ 174.0,73.6 ],[ 162.6,61.4 ],[ 174.0,55.5 ],[ 162.6,63.6 ],[ 161.3,60.9 ],[ 156.2,60.0 ],[ 149.9,46.8 ],[ 169.5,57.3 ],[ 160.0,64.1 ],[ 175.3,63.6 ],[ 169.5,67.3 ],[ 160.0,75.5 ],[ 172.7,68.2 ],[ 162.6,61.4 ],[ 157.5,76.8 ],[ 176.5,71.8 ],[ 164.4,55.5 ],[ 160.7,48.6 ],[ 174.0,66.4 ],[ 163.8,67.3 ] ] },{ \"name\": \"Male\",\"color\": \"rgba(119, 152, 191, .5)\",\"data\": [ [ 174.0,65.6 ],[ 175.3,71.8 ],[ 193.5,80.7 ],[ 186.5,72.6 ],[ 187.2,78.8 ],[ 181.5,74.8 ],[ 184.0,86.4 ],[ 184.5,78.4 ],[ 175.0,62.0 ],[ 184.0,81.6 ],[ 180.0,76.6 ],[ 177.8,83.6 ],[ 192.0,90.0 ],[ 176.0,74.6 ],[ 174.0,71.0 ],[ 184.0,79.6 ],[ 192.7,93.8 ],[ 171.5,70.0 ],[ 173.0,72.4 ],[ 176.0,85.9 ],[ 176.0,78.8 ],[ 180.5,77.8 ],[ 172.7,66.2 ],[ 176.0,86.4 ],[ 173.5,81.8 ],[ 178.0,89.6 ],[ 180.3,82.8 ],[ 180.3,76.4 ],[ 164.5,63.2 ],[ 173.0,60.9 ],[ 183.5,74.8 ],[ 175.5,70.0 ],[ 188.0,72.4 ],[ 189.2,84.1 ],[ 172.8,69.1 ],[ 170.0,59.5 ],[ 182.0,67.2 ],[ 170.0,61.3 ],[ 177.8,68.6 ],[ 184.2,80.1 ],[ 186.7,87.8 ],[ 171.4,84.7 ],[ 172.7,73.4 ],[ 175.3,72.1 ],[ 180.3,82.6 ],[ 182.9,88.7 ],[ 188.0,84.1 ],[ 177.2,94.1 ],[ 172.1,74.9 ],[ 167.0,59.1 ],[ 169.5,75.6 ],[ 174.0,86.2 ],[ 172.7,75.3 ],[ 182.2,87.1 ],[ 164.1,55.2 ],[ 163.0,57.0 ],[ 171.5,61.4 ],[ 184.2,76.8 ],[ 174.0,86.8 ],[ 174.0,72.2 ],[ 177.0,71.6 ],[ 186.0,84.8 ],[ 167.0,68.2 ],[ 171.8,66.1 ],[ 182.0,72.0 ],[ 167.0,64.6 ],[ 177.8,74.8 ],[ 164.5,70.0 ],[ 192.0,101.6 ],[ 175.5,63.2 ],[ 171.2,79.1 ],[ 181.6,78.9 ],[ 167.4,67.7 ],[ 181.1,66.0 ],[ 177.0,68.2 ],[ 174.5,63.9 ],[ 177.5,72.0 ],[ 170.5,56.8 ],[ 182.4,74.5 ],[ 197.1,90.9 ],[ 180.1,93.0 ],[ 175.5,80.9 ],[ 180.6,72.7 ],[ 184.4,68.0 ],[ 175.5,70.9 ],[ 180.6,72.5 ],[ 177.0,72.5 ],[ 177.1,83.4 ],[ 181.6,75.5 ],[ 176.5,73.0 ],[ 175.0,70.2 ],[ 174.0,73.4 ],[ 165.1,70.5 ],[ 177.0,68.9 ],[ 192.0,102.3 ],[ 176.5,68.4 ],[ 169.4,65.9 ],[ 182.1,75.7 ],[ 179.8,84.5 ],[ 175.3,87.7 ],[ 184.9,86.4 ],[ 177.3,73.2 ],[ 167.4,53.9 ],[ 178.1,72.0 ],[ 168.9,55.5 ],[ 157.2,58.4 ],[ 180.3,83.2 ],[ 170.2,72.7 ],[ 177.8,64.1 ],[ 172.7,72.3 ],[ 165.1,65.0 ],[ 186.7,86.4 ],[ 165.1,65.0 ],[ 174.0,88.6 ],[ 175.3,84.1 ],[ 185.4,66.8 ],[ 177.8,75.5 ],[ 180.3,93.2 ],[ 180.3,82.7 ],[ 177.8,58.0 ],[ 177.8,79.5 ],[ 177.8,78.6 ],[ 177.8,71.8 ],[ 177.8,116.4 ],[ 163.8,72.2 ],[ 188.0,83.6 ],[ 198.1,85.5 ],[ 175.3,90.9 ],[ 166.4,85.9 ],[ 190.5,89.1 ],[ 166.4,75.0 ],[ 177.8,77.7 ],[ 179.7,86.4 ],[ 172.7,90.9 ],[ 190.5,73.6 ],[ 185.4,76.4 ],[ 168.9,69.1 ],[ 167.6,84.5 ],[ 175.3,64.5 ],[ 170.2,69.1 ],[ 190.5,108.6 ],[ 177.8,86.4 ],[ 190.5,80.9 ],[ 177.8,87.7 ],[ 184.2,94.5 ],[ 176.5,80.2 ],[ 177.8,72.0 ],[ 180.3,71.4 ],[ 171.4,72.7 ],[ 172.7,84.1 ],[ 172.7,76.8 ],[ 177.8,63.6 ],[ 177.8,80.9 ],[ 182.9,80.9 ],[ 170.2,85.5 ],[ 167.6,68.6 ],[ 175.3,67.7 ],[ 165.1,66.4 ],[ 185.4,102.3 ],[ 181.6,70.5 ],[ 172.7,95.9 ],[ 190.5,84.1 ],[ 179.1,87.3 ],[ 175.3,71.8 ],[ 170.2,65.9 ],[ 193.0,95.9 ],[ 171.4,91.4 ],[ 177.8,81.8 ],[ 177.8,96.8 ],[ 167.6,69.1 ],[ 167.6,82.7 ],[ 180.3,75.5 ],[ 182.9,79.5 ],[ 176.5,73.6 ],[ 186.7,91.8 ],[ 188.0,84.1 ],[ 188.0,85.9 ],[ 177.8,81.8 ],[ 174.0,82.5 ],[ 177.8,80.5 ],[ 171.4,70.0 ],[ 185.4,81.8 ],[ 185.4,84.1 ],[ 188.0,90.5 ],[ 188.0,91.4 ],[ 182.9,89.1 ],[ 176.5,85.0 ],[ 175.3,69.1 ],[ 175.3,73.6 ],[ 188.0,80.5 ],[ 188.0,82.7 ],[ 175.3,86.4 ],[ 170.5,67.7 ],[ 179.1,92.7 ],[ 177.8,93.6 ],[ 175.3,70.9 ],[ 182.9,75.0 ],[ 170.8,93.2 ],[ 188.0,93.2 ],[ 180.3,77.7 ],[ 177.8,61.4 ],[ 185.4,94.1 ],[ 168.9,75.0 ],[ 185.4,83.6 ],[ 180.3,85.5 ],[ 174.0,73.9 ],[ 167.6,66.8 ],[ 182.9,87.3 ],[ 160.0,72.3 ],[ 180.3,88.6 ],[ 167.6,75.5 ],[ 186.7,101.4 ],[ 175.3,91.1 ],[ 175.3,67.3 ],[ 175.9,77.7 ],[ 175.3,81.8 ],[ 179.1,75.5 ],[ 181.6,84.5 ],[ 177.8,76.6 ],[ 182.9,85.0 ],[ 177.8,102.5 ],[ 184.2,77.3 ],[ 179.1,71.8 ],[ 176.5,87.9 ],[ 188.0,94.3 ],[ 174.0,70.9 ],[ 167.6,64.5 ],[ 170.2,77.3 ],[ 167.6,72.3 ],[ 188.0,87.3 ],[ 174.0,80.0 ],[ 176.5,82.3 ],[ 180.3,73.6 ],[ 167.6,74.1 ],[ 188.0,85.9 ],[ 180.3,73.2 ],[ 167.6,76.3 ],[ 183.0,65.9 ],[ 183.0,90.9 ],[ 179.1,89.1 ],[ 170.2,62.3 ],[ 177.8,82.7 ],[ 179.1,79.1 ],[ 190.5,98.2 ],[ 177.8,84.1 ],[ 180.3,83.2 ],[ 180.3,83.2 ] ] }] };\n", " \n", - " window.chart_pbdarftejlc = new Highcharts.Chart(options);\n", + " window.chart_kyoawtmxrnl = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -1080,75 +1090,6 @@ { "data": { "application/javascript": [ - "\n", - " /* BEGIN highcharts-more.js */\n", - "\n", - "/*\n", - " Highcharts JS v5.0.12 (2017-05-24)\n", - "\n", - " (c) 2009-2016 Torstein Honsi\n", - "\n", - " License: www.highcharts.com/license\n", - "*/\n", - "(function(v){\"object\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\"pane\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\n", - "this.group||(this.group=d.g(\"pane-group\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\"left\":x>180+n&&x<360-n?\"right\":\"center\"):u=\"center\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\"getMarkPath\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\n", - "2+a),d=[\"M\",d,e,\"L\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\"arearange\",\"area\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\n", - "{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\n", - "(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\n", - "yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\"left\"),n.step={left:\"right\",center:\"center\",right:\"left\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\n", - "drawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\"right\":\"left\"):n||(c.verticalAlign=q?\"top\":\"bottom\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\n", - "arguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\"left\":\"right\"):n||(c.verticalAlign=q?\"bottom\":\"top\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\n", - "r(\"areasplinerange\",\"arearange\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\"columnrange\",\"arearange\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\n", - "f,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\"path\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\n", - "drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},\n", - "showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\n", - "h,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:d.path||[\"M\",-l,-q/2,\"L\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\"z\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\n", - "zIndex:1}).addClass(\"highcharts-dial\").add(b.group),a.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":g.borderWidth||0,stroke:g.borderColor||\"#cccccc\",fill:g.backgroundColor||\"#000000\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\n", - "b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\n", - "{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\"boxplot\",\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,\n", - "medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\"stroke-width\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\n", - "function(d){null!==b[d]&&(b[d+\"Plot\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\"animate\":\"attr\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\n", - "x||(f.graphic=x=b.g(\"point\").add(a.group),f.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(x),y&&(f.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(x)),z&&(f.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(x)),f.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\"stroke-width\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\n", - "I,C[\"stroke-width\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\"stroke-width\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\"M\",u,e,\"L\",u,k,\"M\",u,d,\"L\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\"M\",q,e,\"L\",q,d,\"L\",m,d,\"L\",m,e,\"L\",q,e,\"z\"]})),y&&(n=f.whiskers.strokeWidth()%2/\n", - "2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\"M\",u-t,k,\"L\",u+t,k,\"M\",u-t,c,\"L\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\"M\",q,g,\"L\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", - "whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\n", - "f=a.seriesType,h=a.seriesTypes;f(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\"y\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\n", - "0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\n", - "alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\"xData\":\"yData\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\n", - "e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\"minSize\",\"maxSize\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\n", - "rightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\"xy\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\n", - "(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\"getPointSpline\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\"C\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\"M\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\"translate\",\n", - "function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\"getGraphPath\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\"alignDataLabel\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\"getCoordinates\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\n", - "a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\"getAxes\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\"drawChartBox\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\"get\",\n", - "function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\n", - "\n", - " /* END highcharts-more.js*/\n", "\n", "\n", "var event = document.createEvent(\"HTMLEvents\");\n", @@ -1157,7 +1098,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v5.0.12 (2017-05-24)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(v){\\\"object\\\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\\nthis.group||(this.group=d.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\\\"left\\\":x>180+n&&x<360-n?\\\"right\\\":\\\"center\\\"):u=\\\"center\\\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\\\"getMarkPath\\\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\\n2+a),d=[\\\"M\\\",d,e,\\\"L\\\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\\n{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\\n(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\\nyBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\\\"left\\\"),n.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\\ndrawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\\\"right\\\":\\\"left\\\"):n||(c.verticalAlign=q?\\\"top\\\":\\\"bottom\\\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\\narguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\\\"left\\\":\\\"right\\\"):n||(c.verticalAlign=q?\\\"bottom\\\":\\\"top\\\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\\nr(\\\"areasplinerange\\\",\\\"arearange\\\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\\\"columnrange\\\",\\\"arearange\\\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\\nf,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\\\"path\\\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\\ndrawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},\\nshowInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\\nh,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:d.path||[\\\"M\\\",-l,-q/2,\\\"L\\\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\\\"z\\\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\\nzIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),a.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":g.borderWidth||0,stroke:g.borderColor||\\\"#cccccc\\\",fill:g.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\\nb.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\\n{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\\\"boxplot\\\",\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,\\nmedianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\\\"stroke-width\\\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\\nfunction(d){null!==b[d]&&(b[d+\\\"Plot\\\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\\\"animate\\\":\\\"attr\\\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\\nx||(f.graphic=x=b.g(\\\"point\\\").add(a.group),f.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(x),y&&(f.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(x)),z&&(f.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(x)),f.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\\\"stroke-width\\\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\\nI,C[\\\"stroke-width\\\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\\\"stroke-width\\\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\\\"M\\\",u,e,\\\"L\\\",u,k,\\\"M\\\",u,d,\\\"L\\\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\\\"M\\\",q,e,\\\"L\\\",q,d,\\\"L\\\",m,d,\\\"L\\\",m,e,\\\"L\\\",q,e,\\\"z\\\"]})),y&&(n=f.whiskers.strokeWidth()%2/\\n2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\\\"M\\\",u-t,k,\\\"L\\\",u+t,k,\\\"M\\\",u-t,c,\\\"L\\\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\\\"M\\\",q,g,\\\"L\\\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\nwhiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\\nf=a.seriesType,h=a.seriesTypes;f(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\\\"y\\\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\\n0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\\nalignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\\\"xData\\\":\\\"yData\\\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\\ne.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\\nrightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\\"xy\\\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\\n(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\\\"getPointSpline\\\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\\\"C\\\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\\\"M\\\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\\\"translate\\\",\\nfunction(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\\\"getGraphPath\\\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\\\"alignDataLabel\\\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\\\"getCoordinates\\\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\\na.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\\\"getAxes\\\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\\\"drawChartBox\\\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\\\"get\\\",\\nfunction(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1169,17 +1110,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1340,17 +1281,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, diff --git a/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb b/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb index 7fe559e..b728977 100644 --- a/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb +++ b/spec/dummy_iruby/Highcharts | add_series method and highcharts examples.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b{:type=>\"spline\", :inverted=>true}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @adapter=Daru::View::Adapter::HighchartsAdapter, @chart=#nil, :name=>nil, :data=>[[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1], [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]}], @options={:chart=>{:type=>\"spline\", :inverted=>true}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @html_options={}, @placeholder=\"frvnwgolxtc\">>" + "#{:type=>\"spline\", :inverted=>true}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @user_options={}, @adapter=Daru::View::Adapter::HighchartsAdapter, @chart=#nil, :name=>nil, :data=>[[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1], [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]}], @options={:chart=>{:type=>\"spline\", :inverted=>true}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @html_options={}, @placeholder=\"olscrnihjxe\", @user_options={}>>" ] }, "execution_count": 4, @@ -964,21 +974,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1012,22 +1022,22 @@ " var onload = window.onload;\n", " window.onload = function(){\n", " if (typeof onload == \"function\") onload();\n", - " var options = { \"chart\": { \"type\": \"spline\",\"inverted\": true,\"renderTo\": \"ztqrbmiagkd\" },\"title\": { \"text\": \"Atmosphere Temperature by Altitude\" },\"subtitle\": { \"text\": \"According to the Standard Atmosphere Model\" },\"xAxis\": { \"reversed\": false,\"title\": { \"enabled\": true,\"text\": \"Altitude\" },\"labels\": { \"formatter\": function () {\n", + " var options = { \"chart\": { \"type\": \"spline\",\"inverted\": true,\"renderTo\": \"oejybqcixzh\" },\"title\": { \"text\": \"Atmosphere Temperature by Altitude\" },\"subtitle\": { \"text\": \"According to the Standard Atmosphere Model\" },\"xAxis\": { \"reversed\": false,\"title\": { \"enabled\": true,\"text\": \"Altitude\" },\"labels\": { \"formatter\": function () {\n", " return this.value + 'km';\n", " } },\"maxPadding\": 0.05,\"showLastLabel\": true },\"yAxis\": { \"title\": { \"text\": \"Temperature\" },\"labels\": { \"formatter\": function () {\n", " return this.value + '°';\n", " } },\"lineWidth\": 2 },\"legend\": { \"enabled\": false },\"tooltip\": { \"headerFormat\": \"{series.name}
\",\"pointFormat\": \"{point.x} km: {point.y}°C\" },\"plotOptions\": { \"spline\": { \"marker\": { \"enable\": false } } },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 0,15 ],[ 10,-50 ],[ 20,-56.5 ],[ 30,-46.5 ],[ 40,-22.1 ],[ 50,-2.5 ],[ 60,-27.7 ],[ 70,-55.7 ],[ 80,-76.5 ] ] },{ \"data\": [ [ 10,15 ],[ 20,-50 ],[ 30,-56.5 ],[ 40,-46.5 ],[ 50,-22.1 ],[ 55,-2.5 ],[ 65,-27.7 ],[ 80,-55.7 ],[ 90,-76.5 ] ],\"name\": null }] };\n", " \n", - " window.chart_ztqrbmiagkd = new Highcharts.Chart(options);\n", + " window.chart_oejybqcixzh = new Highcharts.Chart(options);\n", "\n", " };\n", " })()\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "#nil, :name=>nil, :data=>[[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1], [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]}, {:data=>[[10, 15], [20, -50], [30, -56.5], [40, -46.5], [50, -22.1], [55, -2.5], [65, -27.7], [80, -55.7], [90, -76.5]], :name=>nil}], @options={:chart=>{:type=>\"spline\", :inverted=>true, :renderTo=>\"ztqrbmiagkd\"}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @html_options={:id=>\"ztqrbmiagkd\"}, @placeholder=\"frvnwgolxtc\", @tag_builder=#>>" + "#nil, :name=>nil, :data=>[[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1], [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]}, {:data=>[[10, 15], [20, -50], [30, -56.5], [40, -46.5], [50, -22.1], [55, -2.5], [65, -27.7], [80, -55.7], [90, -76.5]], :name=>nil}], @options={:chart=>{:type=>\"spline\", :inverted=>true, :renderTo=>\"oejybqcixzh\"}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}, @html_options={:id=>\"oejybqcixzh\"}, @placeholder=\"olscrnihjxe\", @user_options={}, @div_id=\"oejybqcixzh\", @tag_builder=#>>" ] }, "execution_count": 6, @@ -1070,21 +1080,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1217,21 +1227,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, @@ -1251,7 +1261,7 @@ { "data": { "text/plain": [ - "{:chart=>{:type=>\"spline\", :inverted=>true, :renderTo=>\"lcxpegivtjk\"}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}" + "{:chart=>{:type=>\"spline\", :inverted=>true, :renderTo=>\"xapnsiwehkc\"}, :title=>{:text=>\"Atmosphere Temperature by Altitude\"}, :subtitle=>{:text=>\"According to the Standard Atmosphere Model\"}, :xAxis=>{:reversed=>false, :title=>{:enabled=>true, :text=>\"Altitude\"}, :labels=>{:formatter=>\"function () {\\n return this.value + 'km';\\n }\"}, :maxPadding=>0.05, :showLastLabel=>true}, :yAxis=>{:title=>{:text=>\"Temperature\"}, :labels=>{:formatter=>\"function () {\\n return this.value + '°';\\n }\"}, :lineWidth=>2}, :legend=>{:enabled=>false}, :tooltip=>{:headerFormat=>\"{series.name}
\", :pointFormat=>\"{point.x} km: {point.y}°C\"}, :plotOptions=>{:spline=>{:marker=>{:enable=>false}}}}" ] }, "execution_count": 13, @@ -1292,7 +1302,7 @@ { "data": { "text/plain": [ - "\"\\n \\n\\n
\"" + "\"\\n \\n\\n
\"" ] }, "execution_count": 15, @@ -1332,21 +1342,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 16, @@ -1366,7 +1376,7 @@ { "data": { "text/plain": [ - "\"frvnwgolxtc\"" + "\"olscrnihjxe\"" ] }, "execution_count": 17, @@ -1387,7 +1397,7 @@ { "data": { "text/plain": [ - "{:id=>\"lyrgcjwdota\"}" + "{:id=>\"rmxiecyaqhj\"}" ] }, "execution_count": 18, @@ -1448,21 +1458,21 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 20, diff --git a/spec/dummy_iruby/Highstock - Chart types.ipynb b/spec/dummy_iruby/Highstock - Chart types.ipynb index 6e8d384..8c2536f 100644 --- a/spec/dummy_iruby/Highstock - Chart types.ipynb +++ b/spec/dummy_iruby/Highstock - Chart types.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"plotOptions\": { \"series\": { \"marker\": { \"enabled\": true,\"radius\": 3 },\"shadow\": true,\"tooltip\": { \"valueDecimals\": 2 } } },\"chart\": { \"renderTo\": \"bjvypsemlcn\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 1147651200000,67.79 ],[ 1147737600000,64.98 ],[ 1147824000000,65.26 ],[ 1149120000000,62.17 ],[ 1149206400000,61.66 ],[ 1149465600000,60.0 ],[ 1149552000000,59.72 ],[ 1157932800000,72.5 ],[ 1158019200000,72.63 ],[ 1158105600000,74.2 ],[ 1158192000000,74.17 ],[ 1158278400000,74.1 ],[ 1158537600000,73.89 ],[ 1170288000000,84.74 ],[ 1170374400000,84.75 ],[ 1174953600000,95.46 ],[ 1175040000000,93.24 ],[ 1175126400000,93.75 ],[ 1175212800000,92.91 ],[ 1180051200000,113.62 ],[ 1180396800000,114.35 ],[ 1180483200000,118.77 ],[ 1180569600000,121.19 ] ] }] };\n", + " var options = { \"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"plotOptions\": { \"series\": { \"marker\": { \"enabled\": true,\"radius\": 3 },\"shadow\": true,\"tooltip\": { \"valueDecimals\": 2 } } },\"chart\": { \"renderTo\": \"ygajilrdqeh\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 1147651200000,67.79 ],[ 1147737600000,64.98 ],[ 1147824000000,65.26 ],[ 1149120000000,62.17 ],[ 1149206400000,61.66 ],[ 1149465600000,60.0 ],[ 1149552000000,59.72 ],[ 1157932800000,72.5 ],[ 1158019200000,72.63 ],[ 1158105600000,74.2 ],[ 1158192000000,74.17 ],[ 1158278400000,74.1 ],[ 1158537600000,73.89 ],[ 1170288000000,84.74 ],[ 1170374400000,84.75 ],[ 1174953600000,95.46 ],[ 1175040000000,93.24 ],[ 1175126400000,93.75 ],[ 1175212800000,92.91 ],[ 1180051200000,113.62 ],[ 1180396800000,114.35 ],[ 1180483200000,118.77 ],[ 1180569600000,121.19 ] ] }] };\n", " \n", - " window.chart_bjvypsemlcn = new Highcharts.StockChart(options);\n", + " window.chart_ygajilrdqeh = new Highcharts.StockChart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -894,7 +904,6 @@ "# line with markers and shadow\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -954,7 +963,7 @@ " }\n", " )\n", "\n", - "line_series_shadow_markers = Daru::View::Plot.new(df, opts)\n", + "line_series_shadow_markers = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_series_shadow_markers.show_in_iruby" ] }, @@ -986,17 +995,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1008,7 +1017,6 @@ " # Spline Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'spline'\n", " },\n", @@ -1063,7 +1071,7 @@ " }\n", " )\n", "\n", - "spline = Daru::View::Plot.new(df, opts)\n", + "spline = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "spline.show_in_iruby" ] }, @@ -1095,17 +1103,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1117,7 +1125,6 @@ " # Step line Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1173,7 +1180,7 @@ " }\n", " )\n", "\n", - "spline = Daru::View::Plot.new(df, opts)\n", + "spline = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "spline.show_in_iruby" ] }, @@ -1205,7 +1212,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1238,7 +1245,6 @@ " # Area Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'area'\n", " },\n", @@ -1309,7 +1315,7 @@ " }\n", " )\n", "\n", - "area = Daru::View::Plot.new(df, opts)\n", + "area = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "area.show_in_iruby" ] }, @@ -1341,7 +1347,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1374,7 +1380,6 @@ " # Area Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'areaspline'\n", " },\n", @@ -1445,7 +1450,7 @@ " }\n", " )\n", "\n", - "area = Daru::View::Plot.new(df, opts)\n", + "area = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "area.show_in_iruby" ] }, @@ -1461,69 +1466,75 @@ " /* BEGIN highcharts-more.js */\n", "\n", "/*\n", - " Highcharts JS v5.0.12 (2017-05-24)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(v){\"object\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\"pane\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\n", - "this.group||(this.group=d.g(\"pane-group\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\"left\":x>180+n&&x<360-n?\"right\":\"center\"):u=\"center\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\"getMarkPath\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\n", - "2+a),d=[\"M\",d,e,\"L\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\"arearange\",\"area\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\n", - "{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\n", - "(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\n", - "yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\"left\"),n.step={left:\"right\",center:\"center\",right:\"left\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\n", - "drawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\"right\":\"left\"):n||(c.verticalAlign=q?\"top\":\"bottom\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\n", - "arguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\"left\":\"right\"):n||(c.verticalAlign=q?\"bottom\":\"top\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\n", - "r(\"areasplinerange\",\"arearange\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\"columnrange\",\"arearange\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\n", - "f,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\"path\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\n", - "drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},\n", - "showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\n", - "h,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:d.path||[\"M\",-l,-q/2,\"L\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\"z\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\n", - "zIndex:1}).addClass(\"highcharts-dial\").add(b.group),a.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":g.borderWidth||0,stroke:g.borderColor||\"#cccccc\",fill:g.backgroundColor||\"#000000\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\n", - "b.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\n", - "{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\"boxplot\",\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,\n", - "medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\"stroke-width\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\n", - "function(d){null!==b[d]&&(b[d+\"Plot\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\"animate\":\"attr\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\n", - "x||(f.graphic=x=b.g(\"point\").add(a.group),f.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(x),y&&(f.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(x)),z&&(f.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(x)),f.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\"stroke-width\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\n", - "I,C[\"stroke-width\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\"stroke-width\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\"M\",u,e,\"L\",u,k,\"M\",u,d,\"L\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\"M\",q,e,\"L\",q,d,\"L\",m,d,\"L\",m,e,\"L\",q,e,\"z\"]})),y&&(n=f.whiskers.strokeWidth()%2/\n", - "2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\"M\",u-t,k,\"L\",u+t,k,\"M\",u-t,c,\"L\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\"M\",q,g,\"L\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", - "whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\n", - "f=a.seriesType,h=a.seriesTypes;f(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\"y\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\n", - "0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\n", - "alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\"xData\":\"yData\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\n", - "e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\"minSize\",\"maxSize\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\n", - "rightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\"xy\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\n", - "(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\"getPointSpline\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\"C\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\"M\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\"translate\",\n", - "function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\"getGraphPath\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\"alignDataLabel\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\"getCoordinates\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\n", - "a.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\"getAxes\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\"drawChartBox\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\"get\",\n", - "function(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\n", + "v.getCenter.call(this)},update:function(a,b){r(!0,this.options,a);this.setOptions(this.options);this.render();u(this.chart.axes,function(c){c.pane===this&&(c.pane=null,c.update({},b))},this)}});a.Pane=p})(w);(function(a){var p=a.addEvent,v=a.Axis,u=a.each,q=a.extend,r=a.map,g=a.merge,m=a.noop,b=a.pick,c=a.pInt,d=a.Tick,k=a.wrap,e=a.correctFloat,f,h,t=v.prototype,l=d.prototype;a.radialAxisExtended||(a.radialAxisExtended=!0,f={getOffset:m,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=\n", + "!1},setScale:m,setCategories:m,setTitle:m},h={defaultRadialGaugeOptions:{labels:{align:\"center\",x:0,y:null},minorGridLineWidth:0,minorTickInterval:\"auto\",minorTickLength:10,minorTickPosition:\"inside\",minorTickWidth:1,tickLength:10,tickPosition:\"inside\",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:\"none\"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:\"circle\",\n", + "labels:{align:\"right\",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(b){b=this.options=g(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[]);a.fireEvent(this,\"afterSetOptions\")},getOffset:function(){t.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(c,d){c=this.center;var a=this.chart,n=b(d,c[2]/2-this.offset);this.isCircular||void 0!==d?(d=this.chart.renderer.symbols.arc(this.left+c[0],this.top+c[1],n,n,{start:this.startAngleRad,\n", + "end:this.endAngleRad,open:!0,innerR:0}),d.xBounds=[this.left+c[0]],d.yBounds=[this.top+c[1]-n]):(d=this.postTranslate(this.angleRad,n),d=[\"M\",c[0]+a.plotLeft,c[1]+a.plotTop,\"L\",d.x,d.y]);return d},setAxisTranslation:function(){t.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=\n", + "this.isCircular&&void 0===b(this.userMax,this.options.max)&&e(this.endAngleRad-this.startAngleRad)===e(2*Math.PI))this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){t.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*b(this.sector,1)/2)},getPosition:function(c,d){return this.postTranslate(this.isCircular?this.translate(c):\n", + "this.angleRad,b(this.isCircular?d:this.translate(c),this.center[2]/2)-this.offset)},postTranslate:function(b,c){var d=this.chart,a=this.center;b=this.startAngleRad+b;return{x:d.plotLeft+a[0]+Math.cos(b)*c,y:d.plotTop+a[1]+Math.sin(b)*c}},getPlotBandPath:function(d,a,e){var f=this.center,n=this.startAngleRad,k=f[2]/2,h=[b(e.outerRadius,\"100%\"),e.innerRadius,b(e.thickness,10)],l=Math.min(this.offset,0),x=/%$/,t,B=this.isCircular;\"polygon\"===this.options.gridLineInterpolation?f=this.getPlotLinePath(d).concat(this.getPlotLinePath(a,\n", + "!0)):(d=Math.max(d,this.min),a=Math.min(a,this.max),B||(h[0]=this.translate(d),h[1]=this.translate(a)),h=r(h,function(b){x.test(b)&&(b=c(b,10)*k/100);return b}),\"circle\"!==e.shape&&B?(d=n+this.translate(d),a=n+this.translate(a)):(d=-Math.PI/2,a=1.5*Math.PI,t=!0),h[0]-=l,h[2]-=l,f=this.chart.renderer.symbols.arc(this.left+f[0],this.top+f[1],h[0],h[0],{start:Math.min(d,a),end:Math.max(d,a),innerR:b(h[1],h[0]-h[2]),open:t}));return f},getPlotLinePath:function(b,c){var d=this,a=d.center,f=d.chart,e=d.getPosition(b),\n", + "h,k,n;d.isCircular?n=[\"M\",a[0]+f.plotLeft,a[1]+f.plotTop,\"L\",e.x,e.y]:\"circle\"===d.options.gridLineInterpolation?(b=d.translate(b))&&(n=d.getLinePath(0,b)):(u(f.xAxis,function(b){b.pane===d.pane&&(h=b)}),n=[],b=d.translate(b),a=h.tickPositions,h.autoConnect&&(a=a.concat([a[0]])),c&&(a=[].concat(a).reverse()),u(a,function(c,d){k=h.getPosition(c,b);n.push(d?\"L\":\"M\",k.x,k.y)}));return n},getTitlePosition:function(){var b=this.center,c=this.chart,d=this.options.title;return{x:c.plotLeft+b[0]+(d.x||0),\n", + "y:c.plotTop+b[1]-{high:.5,middle:.25,low:0}[d.align]*b[2]+(d.y||0)}}},p(v,\"init\",function(b){var c=this.chart,d=c.angular,a=c.polar,e=this.isXAxis,k=d&&e,n,l=c.options;b=b.userOptions.pane||0;b=this.pane=c.pane&&c.pane[b];if(d){if(q(this,k?f:h),n=!e)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else a&&(q(this,h),this.defaultRadialOptions=(n=e)?this.defaultRadialXOptions:g(this.defaultYAxisOptions,this.defaultRadialYOptions));d||a?(this.isRadial=!0,c.inverted=!1,l.chart.zoomType=null):\n", + "this.isRadial=!1;b&&n&&(b.axis=this);this.isCircular=n}),p(v,\"afterInit\",function(){var c=this.chart,d=this.options,a=this.pane,e=a&&a.options;c.angular&&this.isXAxis||!a||!c.angular&&!c.polar||(this.angleRad=(d.angle||0)*Math.PI/180,this.startAngleRad=(e.startAngle-90)*Math.PI/180,this.endAngleRad=(b(e.endAngle,e.startAngle+360)-90)*Math.PI/180,this.offset=d.offset||0)}),k(t,\"autoLabelAlign\",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))}),p(d,\"afterGetPosition\",function(b){this.axis.getPosition&&\n", + "q(b.pos,this.axis.getPosition(this.pos))}),p(d,\"afterGetLabelPosition\",function(c){var d=this.axis,a=this.label,e=d.options.labels,f=e.y,h,k=20,l=e.align,n=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial&&(h=d.getPosition(this.pos,d.center[2]/2+b(e.distance,-25)),\"auto\"===e.rotation?a.attr({rotation:n}):null===f&&(f=d.chart.renderer.fontMetrics(a.styles&&a.styles.fontSize).b-a.getBBox().height/2),null===l&&(d.isCircular?(this.label.getBBox().width>d.len*d.tickInterval/\n", + "(d.max-d.min)&&(k=0),l=n>k&&n<180-k?\"left\":n>180+k&&n<360-k?\"right\":\"center\"):l=\"center\",a.attr({align:l})),c.pos.x=h.x+e.x,c.pos.y=h.y+f)}),k(l,\"getMarkPath\",function(b,c,d,a,e,f,h){var k=this.axis;k.isRadial?(b=k.getPosition(this.pos,k.center[2]/2+a),c=[\"M\",c,d,\"L\",b.x,b.y]):c=b.call(this,c,d,a,e,f,h);return c}))})(w);(function(a){var p=a.each,v=a.pick,u=a.defined,q=a.seriesType,r=a.seriesTypes,g=a.Series.prototype,m=a.Point.prototype;q(\"arearange\",\"area\",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{series.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},\n", + "trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:[\"low\",\"high\"],dataLabelCollections:[\"dataLabel\",\"dataLabelUpper\"],toYData:function(b){return[b.low,b.high]},pointValKey:\"low\",deferTranslatePolar:!0,highToXY:function(b){var c=this.chart,d=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=d.x-c.plotLeft;b.plotHigh=d.y-c.plotTop;b.plotLowX=b.plotX},translate:function(){var b=this,c=b.yAxis,d=!!b.modifyValue;r.area.prototype.translate.apply(b);\n", + "p(b.points,function(a){var e=a.low,f=a.high,h=a.plotY;null===f||null===e?(a.isNull=!0,a.plotY=null):(a.plotLow=h,a.plotHigh=c.translate(d?b.modifyValue(f,a):f,0,1,0,1),d&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(c){b.highToXY(c);c.tooltipPos=[(c.plotHighX+c.plotLowX)/2,(c.plotHigh+c.plotLow)/2]})},getGraphPath:function(b){var c=[],d=[],a,e=r.area.prototype.getGraphPath,f,h,t;t=this.options;var l=this.chart.polar&&!1!==t.connectEnds,n=t.connectNulls,x=t.step;b=b||this.points;\n", + "for(a=b.length;a--;)f=b[a],f.isNull||l||n||b[a+1]&&!b[a+1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1}),h={polarPlotY:f.polarPlotY,rectPlotX:f.rectPlotX,yBottom:f.yBottom,plotX:v(f.plotHighX,f.plotX),plotY:f.plotHigh,isNull:f.isNull},d.push(h),c.push(h),f.isNull||l||n||b[a-1]&&!b[a-1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1});b=e.call(this,b);x&&(!0===x&&(x=\"left\"),t.step={left:\"right\",center:\"center\",right:\"left\"}[x]);c=e.call(this,c);d=e.call(this,d);t.step=x;t=[].concat(b,\n", + "c);this.chart.polar||\"M\"!==d[0]||(d[0]=\"L\");this.graphPath=t;this.areaPath=b.concat(d);t.isArea=!0;t.xMap=b.xMap;this.areaPath.xMap=b.xMap;return t},drawDataLabels:function(){var b=this.data,c=b.length,d,a=[],e=this.options.dataLabels,f=e.align,h=e.verticalAlign,t=e.inside,l,n,x=this.chart.inverted;if(e.enabled||this._hasPointLabels){for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,a[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=\n", + "n,x?f||(e.align=n?\"right\":\"left\"):h||(e.verticalAlign=n?\"top\":\"bottom\"),e.x=e.xHigh,e.y=e.yHigh;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments);for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=a[d],l.y=l.low,l.plotY=l._plotY,l.below=!n,x?f||(e.align=n?\"left\":\"right\"):h||(e.verticalAlign=n?\"bottom\":\"top\"),e.x=e.xLow,e.y=e.yLow;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments)}e.align=f;e.verticalAlign=h},alignDataLabel:function(){r.column.prototype.alignDataLabel.apply(this,\n", + "arguments)},drawPoints:function(){var b=this.points.length,c,d;g.drawPoints.apply(this,arguments);for(d=0;dy&&(y*=-1,g-=y);h?(e=n.barX+a,n.shapeType=\"path\",n.shapeArgs={d:b.polarArc(g+y,g,e,e+n.pointWidth)}):(k.height=y,k.y=g,n.tooltipPos=f.inverted?[c.len+c.pos-f.plotLeft-g-y/2,d.len+d.pos-f.plotTop-k.x-k.width/2,y]:[d.left-f.plotLeft+k.x+k.width/2,c.pos-f.plotTop+g+y/2,y])})},directTouch:!0,trackerGroups:[\"group\",\n", + "\"dataLabelsGroup\"],drawGraph:q,getSymbol:q,crispCol:m.crispCol,drawPoints:m.drawPoints,drawTracker:m.drawTracker,getColumnMetrics:m.getColumnMetrics,pointAttribs:m.pointAttribs,animate:function(){return m.animate.apply(this,arguments)},polarArc:function(){return m.polarArc.apply(this,arguments)},translate3dPoints:function(){return m.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return m.translate3dShapes.apply(this,arguments)}},{setState:m.pointClass.prototype.setState})})(w);\n", + "(function(a){var p=a.each,v=a.isNumber,u=a.merge,q=a.pick,r=a.pInt,g=a.Series,m=a.seriesType,b=a.TrackerMixin;m(\"gauge\",\"line\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\"top\",zIndex:2,borderWidth:1,borderColor:\"#cccccc\"},dial:{},pivot:{},tooltip:{headerFormat:\"\"},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\"dataLabelsGroup\"],translate:function(){var b=this.yAxis,d=this.options,a=b.center;\n", + "this.generatePoints();p(this.points,function(c){var e=u(d.dial,c.dial),h=r(q(e.radius,80))*a[2]/200,k=r(q(e.baseLength,70))*h/100,l=r(q(e.rearLength,10))*h/100,n=e.baseWidth||3,x=e.topWidth||1,g=d.overshoot,m=b.startAngleRad+b.translate(c.y,null,null,null,!0);v(g)?(g=g/180*Math.PI,m=Math.max(b.startAngleRad-g,Math.min(b.endAngleRad+g,m))):!1===d.wrap&&(m=Math.max(b.startAngleRad,Math.min(b.endAngleRad,m)));m=180*m/Math.PI;c.shapeType=\"path\";c.shapeArgs={d:e.path||[\"M\",-l,-n/2,\"L\",k,-n/2,h,-x/2,h,\n", + "x/2,k,n/2,-l,n/2,\"z\"],translateX:a[0],translateY:a[1],rotation:m};c.plotX=a[0];c.plotY=a[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,e=b.options,f=e.pivot,h=b.chart.renderer;p(b.points,function(c){var a=c.graphic,d=c.shapeArgs,f=d.d,k=u(e.dial,c.dial);a?(a.animate(d),d.d=f):(c.graphic=h[c.shapeType](d).attr({rotation:d.rotation,zIndex:1}).addClass(\"highcharts-dial\").add(b.group),c.graphic.attr({stroke:k.borderColor||\"none\",\"stroke-width\":k.borderWidth||0,fill:k.backgroundColor||\n", + "\"#000000\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,q(f.radius,5)).attr({zIndex:2}).addClass(\"highcharts-pivot\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\"stroke-width\":f.borderWidth||0,stroke:f.borderColor||\"#cccccc\",fill:f.backgroundColor||\"#000000\"}))},animate:function(b){var c=this;b||(p(c.points,function(b){var a=b.graphic;a&&(a.attr({rotation:180*c.yAxis.startAngleRad/Math.PI}),a.animate({rotation:b.shapeArgs.rotation},c.options.animation))}),c.animate=\n", + "null)},render:function(){this.group=this.plotGroup(\"group\",\"series\",this.visible?\"visible\":\"hidden\",this.options.zIndex,this.chart.seriesGroup);g.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){g.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();q(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},{setState:function(b){this.state=b}})})(w);(function(a){var p=a.each,v=a.noop,u=a.pick,q=a.seriesType,r=a.seriesTypes;q(\"boxplot\",\n", + "\"column\",{threshold:null,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eMaximum: {point.high}\\x3cbr/\\x3eUpper quartile: {point.q3}\\x3cbr/\\x3eMedian: {point.median}\\x3cbr/\\x3eLower quartile: {point.q1}\\x3cbr/\\x3eMinimum: {point.low}\\x3cbr/\\x3e'},whiskerLength:\"50%\",fillColor:\"#ffffff\",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:[\"low\",\"q1\",\"median\",\"q3\",\"high\"],toYData:function(a){return[a.low,a.q1,a.median,\n", + "a.q3,a.high]},pointValKey:\"high\",pointAttribs:function(){return{}},drawDataLabels:v,translate:function(){var a=this.yAxis,m=this.pointArrayMap;r.column.prototype.translate.apply(this);p(this.points,function(b){p(m,function(c){null!==b[c]&&(b[c+\"Plot\"]=a.translate(b[c],0,1,0,1))})})},drawPoints:function(){var a=this,m=a.options,b=a.chart.renderer,c,d,k,e,f,h,t=0,l,n,x,r,q=!1!==a.doQuartiles,v,z=a.options.whiskerLength;p(a.points,function(g){var p=g.graphic,y=p?\"animate\":\"attr\",B=g.shapeArgs,w={},D=\n", + "{},I={},J={},C=g.color||a.color;void 0!==g.plotY&&(l=B.width,n=Math.floor(B.x),x=n+l,r=Math.round(l/2),c=Math.floor(q?g.q1Plot:g.lowPlot),d=Math.floor(q?g.q3Plot:g.lowPlot),k=Math.floor(g.highPlot),e=Math.floor(g.lowPlot),p||(g.graphic=p=b.g(\"point\").add(a.group),g.stem=b.path().addClass(\"highcharts-boxplot-stem\").add(p),z&&(g.whiskers=b.path().addClass(\"highcharts-boxplot-whisker\").add(p)),q&&(g.box=b.path(void 0).addClass(\"highcharts-boxplot-box\").add(p)),g.medianShape=b.path(void 0).addClass(\"highcharts-boxplot-median\").add(p)),\n", + "D.stroke=g.stemColor||m.stemColor||C,D[\"stroke-width\"]=u(g.stemWidth,m.stemWidth,m.lineWidth),D.dashstyle=g.stemDashStyle||m.stemDashStyle,g.stem.attr(D),z&&(I.stroke=g.whiskerColor||m.whiskerColor||C,I[\"stroke-width\"]=u(g.whiskerWidth,m.whiskerWidth,m.lineWidth),g.whiskers.attr(I)),q&&(w.fill=g.fillColor||m.fillColor||C,w.stroke=m.lineColor||C,w[\"stroke-width\"]=m.lineWidth||0,g.box.attr(w)),J.stroke=g.medianColor||m.medianColor||C,J[\"stroke-width\"]=u(g.medianWidth,m.medianWidth,m.lineWidth),g.medianShape.attr(J),\n", + "h=g.stem.strokeWidth()%2/2,t=n+r+h,g.stem[y]({d:[\"M\",t,d,\"L\",t,k,\"M\",t,c,\"L\",t,e]}),q&&(h=g.box.strokeWidth()%2/2,c=Math.floor(c)+h,d=Math.floor(d)+h,n+=h,x+=h,g.box[y]({d:[\"M\",n,d,\"L\",n,c,\"L\",x,c,\"L\",x,d,\"L\",n,d,\"z\"]})),z&&(h=g.whiskers.strokeWidth()%2/2,k+=h,e+=h,v=/%$/.test(z)?r*parseFloat(z)/100:z/2,g.whiskers[y]({d:[\"M\",t-v,k,\"L\",t+v,k,\"M\",t-v,e,\"L\",t+v,e]})),f=Math.round(g.medianPlot),h=g.medianShape.strokeWidth()%2/2,f+=h,g.medianShape[y]({d:[\"M\",n,f,\"L\",x,f]}))})},setStackedPoints:v})})(w);\n", + "(function(a){var p=a.each,v=a.noop,u=a.seriesType,q=a.seriesTypes;u(\"errorbar\",\"boxplot\",{color:\"#000000\",grouping:!1,linkedTo:\":previous\",tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.low}\\x3c/b\\x3e - \\x3cb\\x3e{point.high}\\x3c/b\\x3e\\x3cbr/\\x3e'},whiskerWidth:null},{type:\"errorbar\",pointArrayMap:[\"low\",\"high\"],toYData:function(a){return[a.low,a.high]},pointValKey:\"high\",doQuartiles:!1,drawDataLabels:q.arearange?function(){var a=\n", + "this.pointValKey;q.arearange.prototype.drawDataLabels.call(this);p(this.data,function(g){g.y=g[a]})}:v,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||q.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var p=a.correctFloat,v=a.isNumber,u=a.pick,q=a.Point,r=a.Series,g=a.seriesType,m=a.seriesTypes;g(\"waterfall\",\"column\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\"#333333\",dashStyle:\"dot\",borderColor:\"#333333\",states:{hover:{lineWidthPlus:0}}},\n", + "{pointValKey:\"y\",showLine:!0,generatePoints:function(){var b=this.options.threshold,c,a,k,e;m.column.prototype.generatePoints.apply(this);k=0;for(a=this.points.length;kf.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),e.yBottom=f.y+f.height,f.height<=p&&!e.isNull?(f.height=p,f.y-=r,e.plotY=f.y,e.minPointLengthOffset=0>e.y?-r:r):e.minPointLengthOffset=0,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=c.len-f:e.tooltipPos[1]=f},processData:function(b){var c=this.yData,a=this.options.data,k,e=c.length,f,h,t,l,n,g;h=f=t=\n", + "l=this.options.threshold||0;for(g=0;gb[l-1].y&&!e||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*\n", + "e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:m,applyZones:m},{haloPath:function(b){return d.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});u.prototype.beforePadding=function(){var d=this,e=this.len,f=this.chart,k=0,m=e,q=this.isXAxis,u=q?\"xData\":\"yData\",w=this.min,z={},K=Math.min(f.plotWidth,f.plotHeight),A=Number.MAX_VALUE,F=-Number.MAX_VALUE,\n", + "G=this.max-w,E=e/G,H=[];r(this.series,function(e){var h=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(d.allowZoomOutside=!0,H.push(e),q&&(r([\"minSize\",\"maxSize\"],function(b){var a=h[b],d=/%$/.test(a),a=c(a);z[b]=d?K*a/100:a}),e.minPxSize=z.minSize,e.maxPxSize=Math.max(z.maxSize,z.minSize),e=a.grep(e.zData,a.isNumber),e.length&&(A=b(h.zMin,Math.min(A,Math.max(v(e),!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),F=b(h.zMax,Math.max(F,p(e))))))});r(H,function(b){var a=\n", + "b[u],c=a.length,e;q&&b.getRadii(A,F,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+f):c-1;f=c+1>b.length-1?f:c+1;h=b[a];f=b[f];g=h.plotX;h=h.plotY;l=f.plotX;n=f.plotY;f=b[c].plotX;c=b[c].plotY;g=(1.5*f+g)/2.5;h=(1.5*c+h)/2.5;l=(1.5*f+l)/2.5;m=(1.5*c+n)/2.5;n=Math.sqrt(Math.pow(g-\n", + "f,2)+Math.pow(h-c,2));p=Math.sqrt(Math.pow(l-f,2)+Math.pow(m-c,2));g=Math.atan2(h-c,g-f);m=Math.PI/2+(g+Math.atan2(m-c,l-f))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=f+Math.cos(m)*n;h=c+Math.sin(m)*n;l=f+Math.cos(Math.PI+m)*p;m=c+Math.sin(Math.PI+m)*p;f={rightContX:l,rightContY:m,leftContX:g,leftContY:h,plotX:f,plotY:c};d&&(f.prevPointCont=this.getConnectors(b,a,!1,k));return f},r(g,\"buildKDTree\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\n", + "\"xy\");b.apply(this)}),g.toXY=function(b){var a,d=this.chart,k=b.plotX;a=b.plotY;b.rectPlotX=k;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-d.plotLeft;b.plotY=b.polarPlotY=a.y-d.plotTop;this.kdByAngle?(d=(k/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>d&&(d+=360),b.clientX=d):b.clientX=b.plotX},q.spline&&(r(q.spline.prototype,\"getPointSpline\",function(b,a,d,k){this.chart.polar?k?(b=this.getConnectors(a,k,!0,this.connectEnds),b=[\"C\",b.prevPointCont.rightContX,\n", + "b.prevPointCont.rightContY,b.leftContX,b.leftContY,b.plotX,b.plotY]):b=[\"M\",d.plotX,d.plotY]:b=b.call(this,a,d,k);return b}),q.areasplinerange&&(q.areasplinerange.prototype.getPointSpline=q.spline.prototype.getPointSpline)),a.addEvent(u,\"afterTranslate\",function(){var b=this.chart,c,d;if(b.polar){this.kdByAngle=b.tooltip&&b.tooltip.shared;if(!this.preventPostTranslate)for(c=this.points,d=c.length;d--;)this.toXY(c[d]);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!a.addEvent(this,\"afterRender\",\n", + "function(){var c;b.polar&&(c=this.yAxis.center,this.group.clip(b.renderer.clipCircle(c[0],c[1],c[2]/2)),this.setClip=a.noop)}))}},{order:2}),r(g,\"getGraphPath\",function(b,a){var c=this,g,e,f;if(this.chart.polar){a=a||this.points;for(g=0;gb.center[1]}),r(q,\"alignDataLabel\",function(a,c,d,k,e,f){this.chart.polar?(a=c.rectPlotX/Math.PI*180,null===k.align&&\n", + "(k.align=20a?\"left\":200a?\"right\":\"center\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\"top\":\"middle\"),g.alignDataLabel.call(this,c,d,k,e,f)):a.call(this,c,d,k,e,f)})),r(m,\"getCoordinates\",function(a,c){var b=this.chart,g={xAxis:[],yAxis:[]};b.polar?p(b.axes,function(a){var d=a.isXAxis,e=a.center,k=c.chartX-e[0]-b.plotLeft,e=c.chartY-e[1]-b.plotTop;g[d?\"xAxis\":\"yAxis\"].push({axis:a,value:a.translate(d?Math.PI-Math.atan2(k,e):Math.sqrt(Math.pow(k,2)+Math.pow(e,\n", + "2)),!0)})}):g=a.call(this,c);return g}),a.SVGRenderer.prototype.clipCircle=function(b,c,d){var g=a.uniqueKey(),e=this.createElement(\"clipPath\").attr({id:g}).add(this.defs);b=this.circle(b,c,d).add(e);b.id=g;b.clipPath=e;return b},a.addEvent(a.Chart,\"getAxes\",function(){this.pane||(this.pane=[]);p(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this)}),a.addEvent(a.Chart,\"afterDrawChartBox\",function(){p(this.pane,function(a){a.render()})}),r(a.Chart.prototype,\"get\",function(b,c){return a.find(this.pane,\n", + "function(a){return a.options.id===c})||b.call(this,c)}))})(w)});\n", "\n", " /* END highcharts-more.js*/\n", "\n", @@ -1534,7 +1545,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v5.0.12 (2017-05-24)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(v){\\\"object\\\"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(a){function r(a,b){this.init(a,b)}var t=a.CenteredSeriesMixin,w=a.each,p=a.extend,m=a.merge,f=a.splat;p(r.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=m(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,d=this.chart.renderer;\\nthis.group||(this.group=d.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=f(b),a=Math.max(b.length,this.background.length||0),d=0;dc.len*c.tickInterval/(c.max-c.min)&&(n=0),u=x>n&&x<180-n?\\\"left\\\":x>180+n&&x<360-n?\\\"right\\\":\\\"center\\\"):u=\\\"center\\\",a.attr({align:u})),b.x+=q.x,b.y+=g):b=b.call(this,d,e,a,l,q,k,h,m);return b});b(a,\\\"getMarkPath\\\",function(b,d,e,a,l,k,h){var c=this.axis;c.isRadial?(b=c.getPosition(this.pos,c.center[2]/\\n2+a),d=[\\\"M\\\",d,e,\\\"L\\\",b.x,b.y]):d=b.call(this,d,e,a,l,k,h);return d})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.Series,m=a.seriesType,f=a.seriesTypes;m(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}},\\n{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,d=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=d.x-b.plotLeft;a.plotHigh=d.y-b.plotTop},translate:function(){var a=this,b=a.yAxis,d=!!a.modifyValue;f.area.prototype.translate.apply(a);r(a.points,function(e){var k=e.low,c=e.high,g=e.plotY;null===c||null===k?e.isNull=!0:\\n(e.plotLow=g,e.plotHigh=b.translate(d?a.modifyValue(c,e):c,0,1,0,1),d&&(e.yBottom=e.plotHigh))});this.chart.polar&&r(this.points,function(b){a.highToXY(b)})},getGraphPath:function(a){var b=[],d=[],e,k=f.area.prototype.getGraphPath,c,g,n;n=this.options;var u=this.chart.polar&&!1!==n.connectEnds,l=n.connectNulls,q=n.step;a=a||this.points;for(e=a.length;e--;)c=a[e],c.isNull||u||l||a[e+1]&&!a[e+1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,\\nyBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull},d.push(g),b.push(g),c.isNull||u||l||a[e-1]&&!a[e-1].isNull||d.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});a=k.call(this,a);q&&(!0===q&&(q=\\\"left\\\"),n.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[q]);b=k.call(this,b);d=k.call(this,d);n.step=q;n=[].concat(a,b);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=n;this.areaPath=this.areaPath.concat(a,d);n.isArea=!0;n.xMap=a.xMap;this.areaPath.xMap=a.xMap;return n},\\ndrawDataLabels:function(){var a=this.data,b=a.length,d,e=[],k=p.prototype,c=this.options.dataLabels,g=c.align,n=c.verticalAlign,u=c.inside,l,q,x=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,e[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=q,x?g||(c.align=q?\\\"right\\\":\\\"left\\\"):n||(c.verticalAlign=q?\\\"top\\\":\\\"bottom\\\"),c.x=c.xHigh,c.y=c.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,\\narguments);for(d=b;d--;)if(l=a[d])q=u?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=e[d],l.y=l.low,l.plotY=l._plotY,l.below=!q,x?g||(c.align=q?\\\"left\\\":\\\"right\\\"):n||(c.verticalAlign=q?\\\"bottom\\\":\\\"top\\\"),c.x=c.xLow,c.y=c.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t,getSymbol:t,drawPoints:t})})(v);(function(a){var r=a.seriesType;\\nr(\\\"areasplinerange\\\",\\\"arearange\\\",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(v);(function(a){var r=a.defaultPlotOptions,t=a.each,w=a.merge,p=a.noop,m=a.pick,f=a.seriesType,h=a.seriesTypes.column.prototype;f(\\\"columnrange\\\",\\\"arearange\\\",w(r.column,r.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var b=this,d=b.yAxis,a=b.xAxis,k=a.startAngleRad,c,g=b.chart,n=b.xAxis.isRadial,u;h.translate.apply(b);t(b.points,function(e){var q=e.shapeArgs,l=b.options.minPointLength,\\nf,h;e.plotHigh=u=d.translate(e.high,0,1,0,1);e.plotLow=e.plotY;h=u;f=m(e.rectPlotY,e.plotY)-u;Math.abs(f)f&&(f*=-1,h-=f);n?(c=e.barX+k,e.shapeType=\\\"path\\\",e.shapeArgs={d:b.polarArc(h+f,h,c,c+e.pointWidth)}):(q.height=f,q.y=h,e.tooltipPos=g.inverted?[d.len+d.pos-g.plotLeft-h-f/2,a.len+a.pos-g.plotTop-q.x-q.width/2,f]:[a.left-g.plotLeft+q.x+q.width/2,d.pos-g.plotTop+h+f/2,f])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],drawGraph:p,crispCol:h.crispCol,drawPoints:h.drawPoints,\\ndrawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics,animate:function(){return h.animate.apply(this,arguments)},polarArc:function(){return h.polarArc.apply(this,arguments)},pointAttribs:h.pointAttribs})})(v);(function(a){var r=a.each,t=a.isNumber,w=a.merge,p=a.pick,m=a.pInt,f=a.Series,h=a.seriesType,b=a.TrackerMixin;h(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},\\nshowInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,a=this.options,k=b.center;this.generatePoints();r(this.points,function(c){var d=w(a.dial,c.dial),e=m(p(d.radius,80))*k[2]/200,u=m(p(d.baseLength,70))*e/100,l=m(p(d.rearLength,10))*e/100,q=d.baseWidth||3,f=d.topWidth||1,h=a.overshoot,r=b.startAngleRad+b.translate(c.y,null,null,null,!0);t(h)?(h=h/180*Math.PI,r=Math.max(b.startAngleRad-\\nh,Math.min(b.endAngleRad+h,r))):!1===a.wrap&&(r=Math.max(b.startAngleRad,Math.min(b.endAngleRad,r)));r=180*r/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:d.path||[\\\"M\\\",-l,-q/2,\\\"L\\\",u,-q/2,e,-f/2,e,f/2,u,q/2,-l,q/2,\\\"z\\\"],translateX:k[0],translateY:k[1],rotation:r};c.plotX=k[0];c.plotY=k[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,c=b.options,g=c.pivot,n=b.chart.renderer;r(b.points,function(a){var d=a.graphic,e=a.shapeArgs,g=e.d,k=w(c.dial,a.dial);d?(d.animate(e),e.d=g):(a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,\\nzIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),a.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=n.circle(0,0,p(g.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":g.borderWidth||0,stroke:g.borderColor||\\\"#cccccc\\\",fill:g.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var a=this;b||(r(a.points,function(b){var c=\\nb.graphic;c&&(c.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();p(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},\\n{setState:function(b){this.state=b}})})(v);(function(a){var r=a.each,t=a.noop,w=a.pick,p=a.seriesType,m=a.seriesTypes;p(\\\"boxplot\\\",\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,\\nmedianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(a){var f=this.options,b=a&&a.color||this.color;return{fill:a.fillColor||f.fillColor||b,stroke:f.lineColor||b,\\\"stroke-width\\\":f.lineWidth||0}},drawDataLabels:t,translate:function(){var a=this.yAxis,h=this.pointArrayMap;m.column.prototype.translate.apply(this);r(this.points,function(b){r(h,\\nfunction(d){null!==b[d]&&(b[d+\\\"Plot\\\"]=a.translate(b[d],0,1,0,1))})})},drawPoints:function(){var a=this,h=a.options,b=a.chart.renderer,d,e,k,c,g,n,u=0,l,q,m,p,z=!1!==a.doQuartiles,t,y=a.options.whiskerLength;r(a.points,function(f){var x=f.graphic,r=x?\\\"animate\\\":\\\"attr\\\",J=f.shapeArgs,v={},C={},H={},I=f.color||a.color;void 0!==f.plotY&&(l=J.width,q=Math.floor(J.x),m=q+l,p=Math.round(l/2),d=Math.floor(z?f.q1Plot:f.lowPlot),e=Math.floor(z?f.q3Plot:f.lowPlot),k=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),\\nx||(f.graphic=x=b.g(\\\"point\\\").add(a.group),f.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(x),y&&(f.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(x)),z&&(f.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(x)),f.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(x)),v.stroke=f.stemColor||h.stemColor||I,v[\\\"stroke-width\\\"]=w(f.stemWidth,h.stemWidth,h.lineWidth),v.dashstyle=f.stemDashStyle||h.stemDashStyle,f.stem.attr(v),y&&(C.stroke=f.whiskerColor||h.whiskerColor||\\nI,C[\\\"stroke-width\\\"]=w(f.whiskerWidth,h.whiskerWidth,h.lineWidth),f.whiskers.attr(C)),z&&(x=a.pointAttribs(f),f.box.attr(x)),H.stroke=f.medianColor||h.medianColor||I,H[\\\"stroke-width\\\"]=w(f.medianWidth,h.medianWidth,h.lineWidth),f.medianShape.attr(H),n=f.stem.strokeWidth()%2/2,u=q+p+n,f.stem[r]({d:[\\\"M\\\",u,e,\\\"L\\\",u,k,\\\"M\\\",u,d,\\\"L\\\",u,c]}),z&&(n=f.box.strokeWidth()%2/2,d=Math.floor(d)+n,e=Math.floor(e)+n,q+=n,m+=n,f.box[r]({d:[\\\"M\\\",q,e,\\\"L\\\",q,d,\\\"L\\\",m,d,\\\"L\\\",m,e,\\\"L\\\",q,e,\\\"z\\\"]})),y&&(n=f.whiskers.strokeWidth()%2/\\n2,k+=n,c+=n,t=/%$/.test(y)?p*parseFloat(y)/100:y/2,f.whiskers[r]({d:[\\\"M\\\",u-t,k,\\\"L\\\",u+t,k,\\\"M\\\",u-t,c,\\\"L\\\",u+t,c]})),g=Math.round(f.medianPlot),n=f.medianShape.strokeWidth()%2/2,g+=n,f.medianShape[r]({d:[\\\"M\\\",q,g,\\\"L\\\",m,g]}))})},setStackedPoints:t})})(v);(function(a){var r=a.each,t=a.noop,w=a.seriesType,p=a.seriesTypes;w(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\nwhiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:p.arearange?function(){var a=this.pointValKey;p.arearange.prototype.drawDataLabels.call(this);r(this.data,function(f){f.y=f[a]})}:t,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||p.column.prototype.getColumnMetrics.call(this)}})})(v);(function(a){var r=a.correctFloat,t=a.isNumber,w=a.pick,p=a.Point,m=a.Series,\\nf=a.seriesType,h=a.seriesTypes;f(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},{pointValKey:\\\"y\\\",translate:function(){var b=this.options,a=this.yAxis,e,k,c,g,n,f,l,q,m,p,t=w(b.minPointLength,5),v=t/2,y=b.threshold,D=b.stacking,A;h.column.prototype.translate.apply(this);q=m=y;k=this.points;e=0;for(b=k.length;eg.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth%2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.height<=t&&!c.isNull?(g.height=t,g.y-=v,c.plotY=g.y,c.minPointLengthOffset=0>c.y?-v:v):c.minPointLengthOffset=0,g=c.plotY+(c.negative?g.height:0),this.chart.inverted?c.tooltipPos[0]=a.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,e=this.options.data,k,c=a.length,g,n,f,l,q,h;n=g=f=l=this.options.threshold||\\n0;for(h=0;hb[u-1].y&&!f||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},\\nalignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:h,applyZones:h},{haloPath:function(b){return e.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var a=this,c=this.len,e=this.chart,g=0,k=c,h=this.isXAxis,p=h?\\\"xData\\\":\\\"yData\\\",v=this.min,w={},D=Math.min(e.plotWidth,e.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=c/F,G=[];m(this.series,function(c){var g=c.options;!c.bubblePadding||!c.visible&&\\ne.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(c),h&&(m([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=g[b],c=/%$/.test(a),a=d(a);w[b]=c?D*a/100:a}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=c.zData,c.length&&(A=b(g.zMin,Math.min(A,Math.max(t(c),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=b(g.zMax,Math.max(E,r(c))))))});m(G,function(b){var c=b[p],d=c.length,e;h&&b.getRadii(A,E,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+d):c-1;d=c+1>b.length-1?d:c+1;k=b[a];d=b[d];h=k.plotX;k=k.plotY;l=d.plotX;m=d.plotY;d=b[c].plotX;c=b[c].plotY;h=(1.5*d+h)/2.5;k=(1.5*c+k)/2.5;l=(1.5*d+l)/2.5;p=(1.5*c+m)/2.5;m=Math.sqrt(Math.pow(h-d,2)+Math.pow(k-c,2));r=Math.sqrt(Math.pow(l-d,2)+Math.pow(p-c,2));h=Math.atan2(k-c,h-d);p=Math.PI/2+(h+Math.atan2(p-c,l-d))/2;Math.abs(h-p)>Math.PI/2&&(p-=Math.PI);h=d+Math.cos(p)*m;k=c+Math.sin(p)*m;l=d+Math.cos(Math.PI+p)*r;p=c+Math.sin(Math.PI+p)*r;d={rightContX:l,\\nrightContY:p,leftContX:h,leftContY:k,plotX:d,plotY:c};e&&(d.prevPointCont=this.getConnectors(b,a,!1,f));return d};m(f,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\\"xy\\\");b.apply(this)});f.toXY=function(b){var a,e=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-e.plotLeft;b.plotY=b.polarPlotY=a.y-e.plotTop;this.kdByAngle?(e=\\n(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>e&&(e+=360),b.clientX=e):b.clientX=b.plotX};p.spline&&(m(p.spline.prototype,\\\"getPointSpline\\\",function(a,d,e,f){this.chart.polar?f?(a=this.getConnectors(d,f,!0,this.connectEnds),a=[\\\"C\\\",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=[\\\"M\\\",e.plotX,e.plotY]:a=a.call(this,d,e,f);return a}),p.areasplinerange&&(p.areasplinerange.prototype.getPointSpline=p.spline.prototype.getPointSpline));m(f,\\\"translate\\\",\\nfunction(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});m(f,\\\"getGraphPath\\\",function(a,d){var b=this,f,c,g;if(this.chart.polar){d=d||this.points;for(f=0;fb.center[1]}),m(p,\\\"alignDataLabel\\\",function(a,d,e,k,c,g){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===k.align&&(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),f.alignDataLabel.call(this,d,e,k,c,g)):a.call(this,d,e,k,c,g)}));m(h,\\\"getCoordinates\\\",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?t(b.axes,function(a){var c=\\na.isXAxis,e=a.center,h=d.chartX-e[0]-b.plotLeft,e=d.chartY-e[1]-b.plotTop;f[c?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,e):Math.sqrt(Math.pow(h,2)+Math.pow(e,2)),!0)})}):f=a.call(this,d);return f});m(a.Chart.prototype,\\\"getAxes\\\",function(b){this.pane||(this.pane=[]);t(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this);b.call(this)});m(a.Chart.prototype,\\\"drawChartBox\\\",function(a){a.call(this);t(this.pane,function(a){a.render()})});m(a.Chart.prototype,\\\"get\\\",\\nfunction(b,d){return a.find(this.pane,function(a){return a.options.id===d})||b.call(this,d)})})(v)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN highcharts-more.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n (c) 2009-2016 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(w){\\\"object\\\"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function p(a,b){this.init(a,b)}var v=a.CenteredSeriesMixin,u=a.each,q=a.extend,r=a.merge,g=a.splat;q(p.prototype,{coll:\\\"pane\\\",init:function(a,b){this.chart=b;this.background=[];b.pane.push(this);this.setOptions(a)},setOptions:function(a){this.options=r(this.defaultOptions,this.chart.angular?{background:{}}:void 0,a)},render:function(){var a=this.options,b=this.options.background,c=this.chart.renderer;\\nthis.group||(this.group=c.g(\\\"pane-group\\\").attr({zIndex:a.zIndex||0}).add());this.updateCenter();if(b)for(b=g(b),a=Math.max(b.length,this.background.length||0),c=0;cd.len*d.tickInterval/\\n(d.max-d.min)&&(k=0),l=n>k&&n<180-k?\\\"left\\\":n>180+k&&n<360-k?\\\"right\\\":\\\"center\\\"):l=\\\"center\\\",a.attr({align:l})),c.pos.x=h.x+e.x,c.pos.y=h.y+f)}),k(l,\\\"getMarkPath\\\",function(b,c,d,a,e,f,h){var k=this.axis;k.isRadial?(b=k.getPosition(this.pos,k.center[2]/2+a),c=[\\\"M\\\",c,d,\\\"L\\\",b.x,b.y]):c=b.call(this,c,d,a,e,f,h);return c}))})(w);(function(a){var p=a.each,v=a.pick,u=a.defined,q=a.seriesType,r=a.seriesTypes,g=a.Series.prototype,m=a.Point.prototype;q(\\\"arearange\\\",\\\"area\\\",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{series.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},\\ntrackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:[\\\"low\\\",\\\"high\\\"],dataLabelCollections:[\\\"dataLabel\\\",\\\"dataLabelUpper\\\"],toYData:function(b){return[b.low,b.high]},pointValKey:\\\"low\\\",deferTranslatePolar:!0,highToXY:function(b){var c=this.chart,d=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=d.x-c.plotLeft;b.plotHigh=d.y-c.plotTop;b.plotLowX=b.plotX},translate:function(){var b=this,c=b.yAxis,d=!!b.modifyValue;r.area.prototype.translate.apply(b);\\np(b.points,function(a){var e=a.low,f=a.high,h=a.plotY;null===f||null===e?(a.isNull=!0,a.plotY=null):(a.plotLow=h,a.plotHigh=c.translate(d?b.modifyValue(f,a):f,0,1,0,1),d&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(c){b.highToXY(c);c.tooltipPos=[(c.plotHighX+c.plotLowX)/2,(c.plotHigh+c.plotLow)/2]})},getGraphPath:function(b){var c=[],d=[],a,e=r.area.prototype.getGraphPath,f,h,t;t=this.options;var l=this.chart.polar&&!1!==t.connectEnds,n=t.connectNulls,x=t.step;b=b||this.points;\\nfor(a=b.length;a--;)f=b[a],f.isNull||l||n||b[a+1]&&!b[a+1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1}),h={polarPlotY:f.polarPlotY,rectPlotX:f.rectPlotX,yBottom:f.yBottom,plotX:v(f.plotHighX,f.plotX),plotY:f.plotHigh,isNull:f.isNull},d.push(h),c.push(h),f.isNull||l||n||b[a-1]&&!b[a-1].isNull||d.push({plotX:f.plotX,plotY:f.plotY,doCurve:!1});b=e.call(this,b);x&&(!0===x&&(x=\\\"left\\\"),t.step={left:\\\"right\\\",center:\\\"center\\\",right:\\\"left\\\"}[x]);c=e.call(this,c);d=e.call(this,d);t.step=x;t=[].concat(b,\\nc);this.chart.polar||\\\"M\\\"!==d[0]||(d[0]=\\\"L\\\");this.graphPath=t;this.areaPath=b.concat(d);t.isArea=!0;t.xMap=b.xMap;this.areaPath.xMap=b.xMap;return t},drawDataLabels:function(){var b=this.data,c=b.length,d,a=[],e=this.options.dataLabels,f=e.align,h=e.verticalAlign,t=e.inside,l,n,x=this.chart.inverted;if(e.enabled||this._hasPointLabels){for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.y=l.high,l._plotY=l.plotY,l.plotY=l.plotHigh,a[d]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=\\nn,x?f||(e.align=n?\\\"right\\\":\\\"left\\\"):h||(e.verticalAlign=n?\\\"top\\\":\\\"bottom\\\"),e.x=e.xHigh,e.y=e.yHigh;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments);for(d=c;d--;)if(l=b[d])n=t?l.plotHighl.plotLow,l.dataLabelUpper=l.dataLabel,l.dataLabel=a[d],l.y=l.low,l.plotY=l._plotY,l.below=!n,x?f||(e.align=n?\\\"left\\\":\\\"right\\\"):h||(e.verticalAlign=n?\\\"bottom\\\":\\\"top\\\"),e.x=e.xLow,e.y=e.yLow;g.drawDataLabels&&g.drawDataLabels.apply(this,arguments)}e.align=f;e.verticalAlign=h},alignDataLabel:function(){r.column.prototype.alignDataLabel.apply(this,\\narguments)},drawPoints:function(){var b=this.points.length,c,d;g.drawPoints.apply(this,arguments);for(d=0;dy&&(y*=-1,g-=y);h?(e=n.barX+a,n.shapeType=\\\"path\\\",n.shapeArgs={d:b.polarArc(g+y,g,e,e+n.pointWidth)}):(k.height=y,k.y=g,n.tooltipPos=f.inverted?[c.len+c.pos-f.plotLeft-g-y/2,d.len+d.pos-f.plotTop-k.x-k.width/2,y]:[d.left-f.plotLeft+k.x+k.width/2,c.pos-f.plotTop+g+y/2,y])})},directTouch:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],drawGraph:q,getSymbol:q,crispCol:m.crispCol,drawPoints:m.drawPoints,drawTracker:m.drawTracker,getColumnMetrics:m.getColumnMetrics,pointAttribs:m.pointAttribs,animate:function(){return m.animate.apply(this,arguments)},polarArc:function(){return m.polarArc.apply(this,arguments)},translate3dPoints:function(){return m.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return m.translate3dShapes.apply(this,arguments)}},{setState:m.pointClass.prototype.setState})})(w);\\n(function(a){var p=a.each,v=a.isNumber,u=a.merge,q=a.pick,r=a.pInt,g=a.Series,m=a.seriesType,b=a.TrackerMixin;m(\\\"gauge\\\",\\\"line\\\",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:\\\"top\\\",zIndex:2,borderWidth:1,borderColor:\\\"#cccccc\\\"},dial:{},pivot:{},tooltip:{headerFormat:\\\"\\\"},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],translate:function(){var b=this.yAxis,d=this.options,a=b.center;\\nthis.generatePoints();p(this.points,function(c){var e=u(d.dial,c.dial),h=r(q(e.radius,80))*a[2]/200,k=r(q(e.baseLength,70))*h/100,l=r(q(e.rearLength,10))*h/100,n=e.baseWidth||3,x=e.topWidth||1,g=d.overshoot,m=b.startAngleRad+b.translate(c.y,null,null,null,!0);v(g)?(g=g/180*Math.PI,m=Math.max(b.startAngleRad-g,Math.min(b.endAngleRad+g,m))):!1===d.wrap&&(m=Math.max(b.startAngleRad,Math.min(b.endAngleRad,m)));m=180*m/Math.PI;c.shapeType=\\\"path\\\";c.shapeArgs={d:e.path||[\\\"M\\\",-l,-n/2,\\\"L\\\",k,-n/2,h,-x/2,h,\\nx/2,k,n/2,-l,n/2,\\\"z\\\"],translateX:a[0],translateY:a[1],rotation:m};c.plotX=a[0];c.plotY=a[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,k=b.pivot,e=b.options,f=e.pivot,h=b.chart.renderer;p(b.points,function(c){var a=c.graphic,d=c.shapeArgs,f=d.d,k=u(e.dial,c.dial);a?(a.animate(d),d.d=f):(c.graphic=h[c.shapeType](d).attr({rotation:d.rotation,zIndex:1}).addClass(\\\"highcharts-dial\\\").add(b.group),c.graphic.attr({stroke:k.borderColor||\\\"none\\\",\\\"stroke-width\\\":k.borderWidth||0,fill:k.backgroundColor||\\n\\\"#000000\\\"}))});k?k.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,q(f.radius,5)).attr({zIndex:2}).addClass(\\\"highcharts-pivot\\\").translate(a[0],a[1]).add(b.group),b.pivot.attr({\\\"stroke-width\\\":f.borderWidth||0,stroke:f.borderColor||\\\"#cccccc\\\",fill:f.backgroundColor||\\\"#000000\\\"}))},animate:function(b){var c=this;b||(p(c.points,function(b){var a=b.graphic;a&&(a.attr({rotation:180*c.yAxis.startAngleRad/Math.PI}),a.animate({rotation:b.shapeArgs.rotation},c.options.animation))}),c.animate=\\nnull)},render:function(){this.group=this.plotGroup(\\\"group\\\",\\\"series\\\",this.visible?\\\"visible\\\":\\\"hidden\\\",this.options.zIndex,this.chart.seriesGroup);g.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){g.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();q(a,!0)&&this.chart.redraw()},drawTracker:b&&b.drawTrackerPoint},{setState:function(b){this.state=b}})})(w);(function(a){var p=a.each,v=a.noop,u=a.pick,q=a.seriesType,r=a.seriesTypes;q(\\\"boxplot\\\",\\n\\\"column\\\",{threshold:null,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eMaximum: {point.high}\\\\x3cbr/\\\\x3eUpper quartile: {point.q3}\\\\x3cbr/\\\\x3eMedian: {point.median}\\\\x3cbr/\\\\x3eLower quartile: {point.q1}\\\\x3cbr/\\\\x3eMinimum: {point.low}\\\\x3cbr/\\\\x3e'},whiskerLength:\\\"50%\\\",fillColor:\\\"#ffffff\\\",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:[\\\"low\\\",\\\"q1\\\",\\\"median\\\",\\\"q3\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.q1,a.median,\\na.q3,a.high]},pointValKey:\\\"high\\\",pointAttribs:function(){return{}},drawDataLabels:v,translate:function(){var a=this.yAxis,m=this.pointArrayMap;r.column.prototype.translate.apply(this);p(this.points,function(b){p(m,function(c){null!==b[c]&&(b[c+\\\"Plot\\\"]=a.translate(b[c],0,1,0,1))})})},drawPoints:function(){var a=this,m=a.options,b=a.chart.renderer,c,d,k,e,f,h,t=0,l,n,x,r,q=!1!==a.doQuartiles,v,z=a.options.whiskerLength;p(a.points,function(g){var p=g.graphic,y=p?\\\"animate\\\":\\\"attr\\\",B=g.shapeArgs,w={},D=\\n{},I={},J={},C=g.color||a.color;void 0!==g.plotY&&(l=B.width,n=Math.floor(B.x),x=n+l,r=Math.round(l/2),c=Math.floor(q?g.q1Plot:g.lowPlot),d=Math.floor(q?g.q3Plot:g.lowPlot),k=Math.floor(g.highPlot),e=Math.floor(g.lowPlot),p||(g.graphic=p=b.g(\\\"point\\\").add(a.group),g.stem=b.path().addClass(\\\"highcharts-boxplot-stem\\\").add(p),z&&(g.whiskers=b.path().addClass(\\\"highcharts-boxplot-whisker\\\").add(p)),q&&(g.box=b.path(void 0).addClass(\\\"highcharts-boxplot-box\\\").add(p)),g.medianShape=b.path(void 0).addClass(\\\"highcharts-boxplot-median\\\").add(p)),\\nD.stroke=g.stemColor||m.stemColor||C,D[\\\"stroke-width\\\"]=u(g.stemWidth,m.stemWidth,m.lineWidth),D.dashstyle=g.stemDashStyle||m.stemDashStyle,g.stem.attr(D),z&&(I.stroke=g.whiskerColor||m.whiskerColor||C,I[\\\"stroke-width\\\"]=u(g.whiskerWidth,m.whiskerWidth,m.lineWidth),g.whiskers.attr(I)),q&&(w.fill=g.fillColor||m.fillColor||C,w.stroke=m.lineColor||C,w[\\\"stroke-width\\\"]=m.lineWidth||0,g.box.attr(w)),J.stroke=g.medianColor||m.medianColor||C,J[\\\"stroke-width\\\"]=u(g.medianWidth,m.medianWidth,m.lineWidth),g.medianShape.attr(J),\\nh=g.stem.strokeWidth()%2/2,t=n+r+h,g.stem[y]({d:[\\\"M\\\",t,d,\\\"L\\\",t,k,\\\"M\\\",t,c,\\\"L\\\",t,e]}),q&&(h=g.box.strokeWidth()%2/2,c=Math.floor(c)+h,d=Math.floor(d)+h,n+=h,x+=h,g.box[y]({d:[\\\"M\\\",n,d,\\\"L\\\",n,c,\\\"L\\\",x,c,\\\"L\\\",x,d,\\\"L\\\",n,d,\\\"z\\\"]})),z&&(h=g.whiskers.strokeWidth()%2/2,k+=h,e+=h,v=/%$/.test(z)?r*parseFloat(z)/100:z/2,g.whiskers[y]({d:[\\\"M\\\",t-v,k,\\\"L\\\",t+v,k,\\\"M\\\",t-v,e,\\\"L\\\",t+v,e]})),f=Math.round(g.medianPlot),h=g.medianShape.strokeWidth()%2/2,f+=h,g.medianShape[y]({d:[\\\"M\\\",n,f,\\\"L\\\",x,f]}))})},setStackedPoints:v})})(w);\\n(function(a){var p=a.each,v=a.noop,u=a.seriesType,q=a.seriesTypes;u(\\\"errorbar\\\",\\\"boxplot\\\",{color:\\\"#000000\\\",grouping:!1,linkedTo:\\\":previous\\\",tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.low}\\\\x3c/b\\\\x3e - \\\\x3cb\\\\x3e{point.high}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e'},whiskerWidth:null},{type:\\\"errorbar\\\",pointArrayMap:[\\\"low\\\",\\\"high\\\"],toYData:function(a){return[a.low,a.high]},pointValKey:\\\"high\\\",doQuartiles:!1,drawDataLabels:q.arearange?function(){var a=\\nthis.pointValKey;q.arearange.prototype.drawDataLabels.call(this);p(this.data,function(g){g.y=g[a]})}:v,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||q.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var p=a.correctFloat,v=a.isNumber,u=a.pick,q=a.Point,r=a.Series,g=a.seriesType,m=a.seriesTypes;g(\\\"waterfall\\\",\\\"column\\\",{dataLabels:{inside:!0},lineWidth:1,lineColor:\\\"#333333\\\",dashStyle:\\\"dot\\\",borderColor:\\\"#333333\\\",states:{hover:{lineWidthPlus:0}}},\\n{pointValKey:\\\"y\\\",showLine:!0,generatePoints:function(){var b=this.options.threshold,c,a,k,e;m.column.prototype.generatePoints.apply(this);k=0;for(a=this.points.length;kf.height&&(f.y+=f.height,f.height*=-1),e.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),e.yBottom=f.y+f.height,f.height<=p&&!e.isNull?(f.height=p,f.y-=r,e.plotY=f.y,e.minPointLengthOffset=0>e.y?-r:r):e.minPointLengthOffset=0,f=e.plotY+(e.negative?f.height:0),this.chart.inverted?e.tooltipPos[0]=c.len-f:e.tooltipPos[1]=f},processData:function(b){var c=this.yData,a=this.options.data,k,e=c.length,f,h,t,l,n,g;h=f=t=\\nl=this.options.threshold||0;for(g=0;gb[l-1].y&&!e||0=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*\\ne,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:m,applyZones:m},{haloPath:function(b){return d.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});u.prototype.beforePadding=function(){var d=this,e=this.len,f=this.chart,k=0,m=e,q=this.isXAxis,u=q?\\\"xData\\\":\\\"yData\\\",w=this.min,z={},K=Math.min(f.plotWidth,f.plotHeight),A=Number.MAX_VALUE,F=-Number.MAX_VALUE,\\nG=this.max-w,E=e/G,H=[];r(this.series,function(e){var h=e.options;!e.bubblePadding||!e.visible&&f.options.chart.ignoreHiddenSeries||(d.allowZoomOutside=!0,H.push(e),q&&(r([\\\"minSize\\\",\\\"maxSize\\\"],function(b){var a=h[b],d=/%$/.test(a),a=c(a);z[b]=d?K*a/100:a}),e.minPxSize=z.minSize,e.maxPxSize=Math.max(z.maxSize,z.minSize),e=a.grep(e.zData,a.isNumber),e.length&&(A=b(h.zMin,Math.min(A,Math.max(v(e),!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),F=b(h.zMax,Math.max(F,p(e))))))});r(H,function(b){var a=\\nb[u],c=a.length,e;q&&b.getRadii(A,F,b.minPxSize,b.maxPxSize);if(0a?b.length-1+a:0;a=0>c-1?b.length-(1+f):c-1;f=c+1>b.length-1?f:c+1;h=b[a];f=b[f];g=h.plotX;h=h.plotY;l=f.plotX;n=f.plotY;f=b[c].plotX;c=b[c].plotY;g=(1.5*f+g)/2.5;h=(1.5*c+h)/2.5;l=(1.5*f+l)/2.5;m=(1.5*c+n)/2.5;n=Math.sqrt(Math.pow(g-\\nf,2)+Math.pow(h-c,2));p=Math.sqrt(Math.pow(l-f,2)+Math.pow(m-c,2));g=Math.atan2(h-c,g-f);m=Math.PI/2+(g+Math.atan2(m-c,l-f))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=f+Math.cos(m)*n;h=c+Math.sin(m)*n;l=f+Math.cos(Math.PI+m)*p;m=c+Math.sin(Math.PI+m)*p;f={rightContX:l,rightContY:m,leftContX:g,leftContY:h,plotX:f,plotY:c};d&&(f.prevPointCont=this.getConnectors(b,a,!1,k));return f},r(g,\\\"buildKDTree\\\",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy=\\n\\\"xy\\\");b.apply(this)}),g.toXY=function(b){var a,d=this.chart,k=b.plotX;a=b.plotY;b.rectPlotX=k;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-d.plotLeft;b.plotY=b.polarPlotY=a.y-d.plotTop;this.kdByAngle?(d=(k/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>d&&(d+=360),b.clientX=d):b.clientX=b.plotX},q.spline&&(r(q.spline.prototype,\\\"getPointSpline\\\",function(b,a,d,k){this.chart.polar?k?(b=this.getConnectors(a,k,!0,this.connectEnds),b=[\\\"C\\\",b.prevPointCont.rightContX,\\nb.prevPointCont.rightContY,b.leftContX,b.leftContY,b.plotX,b.plotY]):b=[\\\"M\\\",d.plotX,d.plotY]:b=b.call(this,a,d,k);return b}),q.areasplinerange&&(q.areasplinerange.prototype.getPointSpline=q.spline.prototype.getPointSpline)),a.addEvent(u,\\\"afterTranslate\\\",function(){var b=this.chart,c,d;if(b.polar){this.kdByAngle=b.tooltip&&b.tooltip.shared;if(!this.preventPostTranslate)for(c=this.points,d=c.length;d--;)this.toXY(c[d]);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!a.addEvent(this,\\\"afterRender\\\",\\nfunction(){var c;b.polar&&(c=this.yAxis.center,this.group.clip(b.renderer.clipCircle(c[0],c[1],c[2]/2)),this.setClip=a.noop)}))}},{order:2}),r(g,\\\"getGraphPath\\\",function(b,a){var c=this,g,e,f;if(this.chart.polar){a=a||this.points;for(g=0;gb.center[1]}),r(q,\\\"alignDataLabel\\\",function(a,c,d,k,e,f){this.chart.polar?(a=c.rectPlotX/Math.PI*180,null===k.align&&\\n(k.align=20a?\\\"left\\\":200a?\\\"right\\\":\\\"center\\\"),null===k.verticalAlign&&(k.verticalAlign=45>a||315a?\\\"top\\\":\\\"middle\\\"),g.alignDataLabel.call(this,c,d,k,e,f)):a.call(this,c,d,k,e,f)})),r(m,\\\"getCoordinates\\\",function(a,c){var b=this.chart,g={xAxis:[],yAxis:[]};b.polar?p(b.axes,function(a){var d=a.isXAxis,e=a.center,k=c.chartX-e[0]-b.plotLeft,e=c.chartY-e[1]-b.plotTop;g[d?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:a,value:a.translate(d?Math.PI-Math.atan2(k,e):Math.sqrt(Math.pow(k,2)+Math.pow(e,\\n2)),!0)})}):g=a.call(this,c);return g}),a.SVGRenderer.prototype.clipCircle=function(b,c,d){var g=a.uniqueKey(),e=this.createElement(\\\"clipPath\\\").attr({id:g}).add(this.defs);b=this.circle(b,c,d).add(e);b.id=g;b.clipPath=e;return b},a.addEvent(a.Chart,\\\"getAxes\\\",function(){this.pane||(this.pane=[]);p(a.splat(this.options.pane),function(b){new a.Pane(b,this)},this)}),a.addEvent(a.Chart,\\\"afterDrawChartBox\\\",function(){p(this.pane,function(a){a.render()})}),r(a.Chart.prototype,\\\"get\\\",function(b,c){return a.find(this.pane,\\nfunction(a){return a.options.id===c})||b.call(this,c)}))})(w)});\\n\\n /* END highcharts-more.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -1546,17 +1557,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1568,11 +1579,9 @@ " # Area range Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'arearange'\n", " },\n", - " modules: ['highcharts-more'],\n", " rangeSelector: {\n", " selected: 2\n", " },\n", @@ -1586,6 +1595,11 @@ " }\n", " }\n", "\n", + " user_opts = {\n", + " chart_class: 'stock',\n", + " modules: ['highcharts-more']\n", + " }\n", + "\n", " data = [\n", " [1483232400000, 1.4, 4.7],\n", " [1483318800000, -1.3, 1.9],\n", @@ -1629,7 +1643,7 @@ " }\n", " )\n", "\n", - "area_range = Daru::View::Plot.new(df, opts)\n", + "area_range = Daru::View::Plot.new(df, opts, user_opts)\n", "area_range.show_in_iruby" ] }, @@ -1661,17 +1675,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1683,7 +1697,6 @@ " # Area range Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'areasplinerange'\n", " },\n", @@ -1743,7 +1756,7 @@ " }\n", " )\n", "\n", - "area_range = Daru::View::Plot.new(df, opts)\n", + "area_range = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "area_range.show_in_iruby" ] }, @@ -1775,7 +1788,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 10, @@ -1807,7 +1820,6 @@ "# Candle Stick\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1902,7 +1914,7 @@ " [1515110400000,173.44,175.37,173.05,175.00]\n", " ]\n", "\n", - "candle_stick = Daru::View::Plot.new(data, opts)\n", + "candle_stick = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "candle_stick.show_in_iruby" ] }, @@ -1934,7 +1946,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 11, @@ -1966,7 +1978,6 @@ "# ohlc Stick\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -2061,7 +2072,7 @@ " [1515110400000,173.44,175.37,173.05,175.00]\n", " ]\n", "\n", - "ohlc = Daru::View::Plot.new(data, opts)\n", + "ohlc = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "ohlc.show_in_iruby" ] }, @@ -2093,7 +2104,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 12, @@ -2125,7 +2136,6 @@ "# column\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -2220,7 +2230,7 @@ " [1515110400000,173.44,175.37,173.05,175.00]\n", " ]\n", "\n", - "column = Daru::View::Plot.new(data, opts)\n", + "column = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "column.show_in_iruby" ] }, @@ -2252,17 +2262,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 13, @@ -2274,7 +2284,6 @@ " # Column range Highstock \n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'columnrange'\n", " },\n", @@ -2336,7 +2345,7 @@ " )\n", "\n", "\n", - "column_range = Daru::View::Plot.new(df, opts)\n", + "column_range = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "column_range.show_in_iruby" ] }, @@ -2368,17 +2377,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 14, @@ -2390,7 +2399,6 @@ "# Point markers only\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 2\n", " },\n", @@ -2485,7 +2493,7 @@ " [1515110400000,173.44,175.37,173.05,175.00]\n", " ]\n", "\n", - "point_markers = Daru::View::Plot.new(data, opts)\n", + "point_markers = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "point_markers.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/Highstock - General.ipynb b/spec/dummy_iruby/Highstock - General.ipynb index 5136460..80ba4b1 100644 --- a/spec/dummy_iruby/Highstock - General.ipynb +++ b/spec/dummy_iruby/Highstock - General.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"chart\": { \"renderTo\": \"xqlgteohjrk\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 1147651200000,67.79 ],[ 1147737600000,64.98 ],[ 1147824000000,65.26 ],[ 1149120000000,62.17 ],[ 1149206400000,61.66 ],[ 1149465600000,60.0 ],[ 1149552000000,59.72 ],[ 1157932800000,72.5 ],[ 1158019200000,72.63 ],[ 1158105600000,74.2 ],[ 1158192000000,74.17 ],[ 1158278400000,74.1 ],[ 1158537600000,73.89 ],[ 1170288000000,84.74 ],[ 1170374400000,84.75 ],[ 1174953600000,95.46 ],[ 1175040000000,93.24 ],[ 1175126400000,93.75 ],[ 1175212800000,92.91 ],[ 1180051200000,113.62 ],[ 1180396800000,114.35 ],[ 1180483200000,118.77 ],[ 1180569600000,121.19 ] ] }] };\n", + " var options = { \"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"chart\": { \"renderTo\": \"dipwofsekbh\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 1147651200000,67.79 ],[ 1147737600000,64.98 ],[ 1147824000000,65.26 ],[ 1149120000000,62.17 ],[ 1149206400000,61.66 ],[ 1149465600000,60.0 ],[ 1149552000000,59.72 ],[ 1157932800000,72.5 ],[ 1158019200000,72.63 ],[ 1158105600000,74.2 ],[ 1158192000000,74.17 ],[ 1158278400000,74.1 ],[ 1158537600000,73.89 ],[ 1170288000000,84.74 ],[ 1170374400000,84.75 ],[ 1174953600000,95.46 ],[ 1175040000000,93.24 ],[ 1175126400000,93.75 ],[ 1175212800000,92.91 ],[ 1180051200000,113.62 ],[ 1180396800000,114.35 ],[ 1180483200000,118.77 ],[ 1180569600000,121.19 ] ] }] };\n", " \n", - " window.chart_xqlgteohjrk = new Highcharts.StockChart(options);\n", + " window.chart_dipwofsekbh = new Highcharts.StockChart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -893,7 +903,6 @@ "source": [ " # Single line series\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -942,7 +951,7 @@ " }\n", " )\n", "\n", - "line_series = Daru::View::Plot.new(df, opts)\n", + "line_series = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_series.show_in_iruby" ] }, @@ -974,17 +983,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -995,7 +1004,6 @@ "source": [ " # Flag marking\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 0\n", " },\n", @@ -1170,7 +1178,7 @@ " }\n", " ]\n", "\n", - "flag_marking = Daru::View::Plot.new(series_dt, opts)\n", + "flag_marking = Daru::View::Plot.new(series_dt, opts, chart_class: 'stock')\n", "flag_marking.show_in_iruby" ] }, @@ -1202,17 +1210,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1223,7 +1231,6 @@ "source": [ " # Intraday candlestick\n", " opts = {\n", - " chart_class: 'stock',\n", " title: {\n", " text: 'AAPL stock price by minute'\n", " },\n", @@ -1286,7 +1293,7 @@ " [1318607940000,421.94,422,421.8241,422]\n", " ]\n", "\n", - "candle_stick = Daru::View::Plot.new(data, opts)\n", + "candle_stick = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "candle_stick.show_in_iruby" ] }, @@ -1318,17 +1325,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1339,7 +1346,6 @@ "source": [ " # Responsive Chart\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " height: 400,\n", " type: 'area'\n", @@ -1420,7 +1426,7 @@ " }\n", " )\n", "\n", - "line_series = Daru::View::Plot.new(df, opts)\n", + "line_series = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_series.show_in_iruby" ] }, @@ -1452,7 +1458,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 7, @@ -1484,7 +1490,6 @@ "source": [ " #Intraday \n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " type: 'area'\n", " },\n", @@ -1577,7 +1582,7 @@ " [1318607940000,421.94,422,421.8241,422]\n", " ]\n", "\n", - "intraday_area = Daru::View::Plot.new(data, opts)\n", + "intraday_area = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "intraday_area.show_in_iruby" ] }, @@ -1609,7 +1614,7 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 8, @@ -1641,7 +1646,6 @@ "source": [ " # Intraday with breaks \n", " opts = {\n", - " chart_class: 'stock',\n", " title: {\n", " text: 'AAPL stock price by minute'\n", " },\n", @@ -1742,7 +1746,7 @@ " [1318607940000,421.94,422,421.8241,422]\n", " ]\n", "\n", - "intraday_breaks = Daru::View::Plot.new(data, opts)\n", + "intraday_breaks = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "intraday_breaks.show_in_iruby" ] }, @@ -1783,7 +1787,7 @@ " y = Math.round(Math.random() * 100);\n", " series.addPoint([x, y], true, true);\n", " }, 1000);\n", - " } },\"renderTo\": \"otvexbkcizy\" },\"rangeSelector\": { \"buttons\": [ { \"count\": 1,\"type\": \"minute\",\"text\": \"1M\" },{ \"count\": 5,\"type\": \"minute\",\"text\": \"5M\" },{ \"type\": \"all\",\"text\": \"All\" } ],\"inputEnabled\": false,\"selected\": 0 },\"title\": { \"text\": \"Live random data\" },\"exporting\": { \"enabled\": false },\"series\": [{ \"name\": \"Random data\",\"data\": (function () {\n", + " } },\"renderTo\": \"vzqcftsuryw\" },\"rangeSelector\": { \"buttons\": [ { \"count\": 1,\"type\": \"minute\",\"text\": \"1M\" },{ \"count\": 5,\"type\": \"minute\",\"text\": \"5M\" },{ \"type\": \"all\",\"text\": \"All\" } ],\"inputEnabled\": false,\"selected\": 0 },\"title\": { \"text\": \"Live random data\" },\"exporting\": { \"enabled\": false },\"series\": [{ \"name\": \"Random data\",\"data\": (function () {\n", " // generate an array of random data\n", " var data = [],\n", " time = (new Date()).getTime(),\n", @@ -1798,15 +1802,15 @@ " return data;\n", " }()) }] };\n", " \n", - " window.chart_otvexbkcizy = new Highcharts.StockChart(options);\n", + " window.chart_vzqcftsuryw = new Highcharts.StockChart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 9, @@ -1817,7 +1821,6 @@ "source": [ " # Dynamically updating data\n", " opts = {\n", - " chart_class: 'stock',\n", " chart: {\n", " events: {\n", " load: \"function () {\n", @@ -1877,7 +1880,7 @@ " }())\".js_code\n", " }]\n", "\n", - "dynamic_data = Daru::View::Plot.new(series_dt, opts)\n", + "dynamic_data = Daru::View::Plot.new(series_dt, opts, chart_class: 'stock')\n", "dynamic_data.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/Highstock - Various features.ipynb b/spec/dummy_iruby/Highstock - Various features.ipynb index 9eda469..8c889a1 100644 --- a/spec/dummy_iruby/Highstock - Various features.ipynb +++ b/spec/dummy_iruby/Highstock - Various features.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"type\": \"area\",\"renderTo\": \"orhcnsdbwuy\" },\"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"yAxis\": { \"reversed\": true,\"showFirstLabel\": false,\"showLastLabel\": true },\"plotOptions\": { \"series\": { \"tooltip\": { \"valueDecimals\": 2 },\"fillColor\": {\n", + " var options = { \"chart\": { \"type\": \"area\",\"renderTo\": \"wtzlhxcqsui\" },\"rangeSelector\": { \"selected\": 1 },\"title\": { \"text\": \"AAPL Stock Price\" },\"yAxis\": { \"reversed\": true,\"showFirstLabel\": false,\"showLastLabel\": true },\"plotOptions\": { \"series\": { \"tooltip\": { \"valueDecimals\": 2 },\"fillColor\": {\n", " linearGradient: {\n", " x1: 0,\n", " y1: 0,\n", @@ -885,15 +895,15 @@ " ]\n", " },\"threshold\": null } },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 1147651200000,67.79 ],[ 1147737600000,64.98 ],[ 1147824000000,65.26 ],[ 1149120000000,62.17 ],[ 1149206400000,61.66 ],[ 1149465600000,60.0 ],[ 1149552000000,59.72 ],[ 1157932800000,72.5 ],[ 1158019200000,72.63 ],[ 1158105600000,74.2 ],[ 1158192000000,74.17 ],[ 1158278400000,74.1 ],[ 1158537600000,73.89 ],[ 1170288000000,84.74 ],[ 1170374400000,84.75 ],[ 1174953600000,95.46 ],[ 1175040000000,93.24 ],[ 1175126400000,93.75 ],[ 1175212800000,92.91 ],[ 1180051200000,113.62 ],[ 1180396800000,114.35 ],[ 1180483200000,118.77 ],[ 1180569600000,121.19 ] ] }] };\n", " \n", - " window.chart_orhcnsdbwuy = new Highcharts.StockChart(options);\n", + " window.chart_wtzlhxcqsui = new Highcharts.StockChart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -905,7 +915,6 @@ "# Reversed Y axis\n", "\n", " opts = {\n", - " chart_class: 'STock',\n", " chart: {\n", " type: 'area'\n", " },\n", @@ -983,7 +992,7 @@ " }\n", " )\n", "\n", - "line_reversed_y_axis = Daru::View::Plot.new(df, opts)\n", + "line_reversed_y_axis = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_reversed_y_axis.show_in_iruby" ] }, @@ -1015,17 +1024,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 4, @@ -1037,7 +1046,6 @@ "# Styled scrollbar\n", "\n", " opts = {\n", - " chart_class: 'Stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1097,7 +1105,7 @@ " }\n", " )\n", "\n", - "line_styled_scrollbar = Daru::View::Plot.new(df, opts)\n", + "line_styled_scrollbar = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_styled_scrollbar.show_in_iruby" ] }, @@ -1129,17 +1137,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 5, @@ -1151,7 +1159,6 @@ "# Disabled scrollbar\n", "\n", " opts = {\n", - " chart_class: 'stock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1203,7 +1210,7 @@ " }\n", " )\n", "\n", - "line_disabled_scrollbar = Daru::View::Plot.new(df, opts)\n", + "line_disabled_scrollbar = Daru::View::Plot.new(df, opts, chart_class: 'stock')\n", "line_disabled_scrollbar.show_in_iruby" ] }, @@ -1235,17 +1242,17 @@ " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 6, @@ -1257,7 +1264,6 @@ "# Disabled navigator\n", "\n", " opts = {\n", - " chart_class: 'sTock',\n", " rangeSelector: {\n", " selected: 1\n", " },\n", @@ -1302,7 +1308,7 @@ " [1180569600000,121.19],\n", " ]\n", "\n", - "line_disabled_navigator = Daru::View::Plot.new(data, opts)\n", + "line_disabled_navigator = Daru::View::Plot.new(data, opts, chart_class: 'stock')\n", "line_disabled_navigator.show_in_iruby" ] }, diff --git a/spec/dummy_iruby/Load Multiple Adapters.ipynb b/spec/dummy_iruby/Load Multiple Adapters.ipynb index c7e134d..0030a32 100644 --- a/spec/dummy_iruby/Load Multiple Adapters.ipynb +++ b/spec/dummy_iruby/Load Multiple Adapters.ipynb @@ -84,547 +84,553 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", @@ -823,40 +830,41 @@ " /* BEGIN modules/data.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Data module\n", "\n", " (c) 2012-2017 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(y){\"object\"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(h){h.ajax=function(A){var m=h.merge(!0,{url:!1,type:\"GET\",dataType:\"json\",success:!1,error:!1,data:!1,headers:{}},A);A={json:\"application/json\",xml:\"application/xml\",text:\"text/plain\",octet:\"application/octet-stream\"};var r=new XMLHttpRequest;if(!m.url)return!1;r.open(m.type.toUpperCase(),m.url,!0);r.setRequestHeader(\"Content-Type\",A[m.dataType]||A.text);h.objectEach(m.headers,function(h,m){r.setRequestHeader(m,\n", - "h)});r.onreadystatechange=function(){var h;if(4===r.readyState){if(200===r.status){h=r.responseText;if(\"json\"===m.dataType)try{h=JSON.parse(h)}catch(F){m.error&&m.error(r,F);return}return m.success&&m.success(h)}m.error&&m.error(r,r.responseText)}};try{m.data=JSON.stringify(m.data)}catch(v){}r.send(m.data||!0)}})(y);(function(h){var A=h.addEvent,m=h.Chart,r=h.win.document,v=h.each,y=h.objectEach,G=h.pick,D=h.inArray,E=h.isNumber,B=h.merge,H=h.splat,I=h.fireEvent,J=h.some,x,C=function(a,b,c){this.init(a,\n", - "b,c)};h.extend(C.prototype,{init:function(a,b,c){var f=a.decimalPoint,e;b&&(this.chartOptions=b);c&&(this.chart=c);\".\"!==f&&\",\"!==f&&(f=void 0);this.options=a;this.columns=a.columns||this.rowsToColumns(a.rows)||[];this.firstRowAsNames=G(a.firstRowAsNames,this.firstRowAsNames,!0);this.decimalRegex=f&&new RegExp(\"^(-?[0-9]+)\"+f+\"([0-9]+)$\");this.rawColumns=[];this.columns.length&&(this.dataFound(),e=!0);e||(e=this.fetchLiveData());e||(e=!!this.parseCSV().length);e||(e=!!this.parseTable().length);e||\n", - "(e=this.parseGoogleSpreadsheet());!e&&a.afterComplete&&a.afterComplete()},getColumnDistribution:function(){var a=this.chartOptions,b=this.options,c=[],f=function(a){return(h.seriesTypes[a||\"line\"].prototype.pointArrayMap||[0]).length},e=a&&a.chart&&a.chart.type,d=[],k=[],p=0,g;v(a&&a.series||[],function(a){d.push(f(a.type||e))});v(b&&b.seriesMapping||[],function(a){c.push(a.x||0)});0===c.length&&c.push(0);v(b&&b.seriesMapping||[],function(b){var c=new x,n=d[p]||f(e),t=h.seriesTypes[((a&&a.series||\n", - "[])[p]||{}).type||e||\"line\"].prototype.pointArrayMap||[\"y\"];c.addColumnReader(b.x,\"x\");y(b,function(a,b){\"x\"!==b&&c.addColumnReader(a,b)});for(g=0;gu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", " $(function() {\n", "\n", - " var options = { \"chart\": { \"type\": \"spline\",\"inverted\": true,\"renderTo\": \"wymntupebrh\" },\"title\": { \"text\": \"Atmosphere Temperature by Altitude\" },\"subtitle\": { \"text\": \"According to the Standard Atmosphere Model\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 0,15 ],[ 10,-50 ],[ 20,-56.5 ],[ 30,-46.5 ],[ 40,-22.1 ],[ 50,-2.5 ],[ 60,-27.7 ],[ 70,-55.7 ],[ 80,-76.5 ] ] }] };\n", + " var options = { \"chart\": { \"type\": \"spline\",\"inverted\": true,\"renderTo\": \"knayexpbwhl\" },\"title\": { \"text\": \"Atmosphere Temperature by Altitude\" },\"subtitle\": { \"text\": \"According to the Standard Atmosphere Model\" },\"series\": [{ \"type\": null,\"name\": null,\"data\": [ [ 0,15 ],[ 10,-50 ],[ 20,-56.5 ],[ 30,-46.5 ],[ 40,-22.1 ],[ 50,-2.5 ],[ 60,-27.7 ],[ 70,-55.7 ],[ 80,-76.5 ] ] }] };\n", " \n", - " window.chart_wymntupebrh = new Highcharts.Chart(options);\n", + " window.chart_knayexpbwhl = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\" \\n\\n
\"" + "\" \\n\\n
\"" ] }, "execution_count": 3, @@ -1262,19 +1270,20 @@ { "data": { "text/html": [ - "
\n", + "\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"\\n
\\n\\n\"" ] }, "execution_count": 4, @@ -1302,12 +1311,12 @@ { "data": { "text/html": [ - "
\n", + "
\n", "\n" ], "text/plain": [ - "#[#[#:bar, :options=>{:x=>\"data0\", :y=>\"data1\"}, :data=>\"525c0c1e-5b14-48a8-8d7e-bd8926ec2b00\"}, @xrange=[:a, :b, :c], @yrange=[0, 0.5]>], :options=>{:yrange=>[0, 1], :y_label=>\"Fraction\", :width=>700, :xrange=>[:a, :b, :c]}}>], :data=>{\"525c0c1e-5b14-48a8-8d7e-bd8926ec2b00\"=>#:a, :data1=>0.5}, {:data0=>:b, :data1=>0.3333333333333333}, {:data0=>:c, :data1=>0.16666666666666666}]>}, :extension=>[]}>" + "#[#[#:bar, :options=>{:x=>\"data0\", :y=>\"data1\"}, :data=>\"7f0eeb62-ca96-4792-bb95-7455cbab4503\"}, @xrange=[:a, :b, :c], @yrange=[0, 0.5]>], :options=>{:yrange=>[0, 1], :y_label=>\"Fraction\", :width=>700, :xrange=>[:a, :b, :c]}}>], :data=>{\"7f0eeb62-ca96-4792-bb95-7455cbab4503\"=>#:a, :data1=>0.5}, {:data0=>:b, :data1=>0.3333333333333333}, {:data0=>:c, :data1=>0.16666666666666666}]>}, :extension=>[]}>" ] }, "metadata": {}, diff --git a/spec/dummy_iruby/Multiple Charts in a cell.ipynb b/spec/dummy_iruby/Multiple Charts in a cell.ipynb index c884887..88b59f0 100644 --- a/spec/dummy_iruby/Multiple Charts in a cell.ipynb +++ b/spec/dummy_iruby/Multiple Charts in a cell.ipynb @@ -91,231 +91,231 @@ " /* BEGIN loader.js */\n", "\n", "(function(){var a=\"\\n//# sourceURL=\",k=\"' of type \",n='\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"\\n
\\n\\n\"" ] }, "execution_count": 4, @@ -600,19 +601,20 @@ { "data": { "text/html": [ - "
\n", + "\n", + "
\n", "\n" ], "text/plain": [ - "\"
\\n\\n\"" + "\"\\n
\\n\\n\"" ] }, "execution_count": 6, @@ -640,37 +642,39 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 7, @@ -693,40 +697,39 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 8, @@ -750,40 +753,39 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 9, @@ -807,67 +809,65 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 10, @@ -892,37 +892,39 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 11, @@ -952,49 +954,52 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n", + "\n", "\n", "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 12, @@ -1026,777 +1031,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b\n", "
\n", - " \n", - "
\n", - " \n", - "
\n", + " \n", + "
\n", + " \n", + "
\n", " \n", " \n", "\n", "\n", + "\n", "\n", " \n", @@ -1865,7 +1881,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 13, @@ -1916,29 +1932,30 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", " \n", @@ -1946,7 +1963,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 14, @@ -2013,53 +2030,55 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", " \n", "\n", "\n", + "\n", "\n", " \n", @@ -2067,7 +2086,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n \\n\\n\\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n \\n\\n\\n\\n\\n \\n\\n\\n\"" ] }, "execution_count": 15, @@ -2132,20 +2151,21 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", "\n", + "\n", "\n", @@ -2153,8 +2173,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 16, @@ -2200,10 +2220,10 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", @@ -2211,8 +2231,8 @@ "\\n\\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n\\n\\n\\n\\n\"" ] }, "execution_count": 17, @@ -2379,7 +2399,7 @@ " /* BEGIN modules/funnel.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", " Highcharts funnel module\n", "\n", " (c) 2010-2017 Torstein Honsi\n", @@ -2388,7 +2408,7 @@ "*/\n", "(function(e){\"object\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\"funnel\",\"pie\",{animation:!1,center:[\"50%\",\"50%\"],width:\"90%\",neckWidth:\"30%\",height:\"100%\",neckHeight:\"25%\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\"#cccccc\",borderColor:\"#000000\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\n", "0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\"left\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\n", - "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\"M\",B,n,\"L\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", + "!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\"M\",B,n,\"L\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\"Z\");a.shapeType=\"path\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\n", "c.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\"right\":\"left\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\"pyramid\",\"funnel\",{neckWidth:\"0%\",\n", "neckHeight:\"0%\",reversed:!0})})(e)});\n", "\n", @@ -2401,7 +2421,7 @@ "console.log(\"Finish loading highchartsjs\");\n" ], "text/plain": [ - "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,p=p?2*r-p:null);z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" + "\"\\n /* BEGIN modules/funnel.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n Highcharts funnel module\\n\\n (c) 2010-2017 Torstein Honsi\\n\\n License: www.highcharts.com/license\\n*/\\n(function(e){\\\"object\\\"===typeof module&&module.exports?module.exports=e:e(Highcharts)})(function(e){(function(g){var e=g.seriesType,C=g.seriesTypes,H=g.noop,D=g.pick,I=g.each;e(\\\"funnel\\\",\\\"pie\\\",{animation:!1,center:[\\\"50%\\\",\\\"50%\\\"],width:\\\"90%\\\",neckWidth:\\\"30%\\\",height:\\\"100%\\\",neckHeight:\\\"25%\\\",reversed:!1,size:!0,dataLabels:{connectorWidth:1},states:{select:{color:\\\"#cccccc\\\",borderColor:\\\"#000000\\\"}}},{animate:H,translate:function(){var b=function(a,b){return/%$/.test(a)?b*parseInt(a,10)/100:parseInt(a,10)},E=\\n0,c=this.chart,f=this.options,d=f.reversed,e=f.ignoreHiddenPoint,t=c.plotWidth,c=c.plotHeight,q=0,g=f.center,h=b(g[0],t),r=b(g[1],c),C=b(f.width,t),l,v,m=b(f.height,c),w=b(f.neckWidth,t),F=b(f.neckHeight,c),x=r-m/2+m-F,b=this.data,z,A,D=\\\"left\\\"===f.dataLabels.position?1:0,B,n,G,u,k,y,p;this.getWidthAt=v=function(a){var b=r-m/2;return a>x||m===F?w:w+(C-w)*(1-(a-b)/(m-F))};this.getX=function(a,b,c){return h+(b?-1:1)*(v(d?2*r-a:a)/2+c.labelDistance)};this.center=[h,r,m];this.centerX=h;I(b,function(a){e&&\\n!1===a.visible||(E+=a.y)});I(b,function(a){p=null;A=E?a.y/E:0;n=r-m/2+q*m;k=n+A*m;l=v(n);B=h-l/2;G=B+l;l=v(k);u=h-l/2;y=u+l;n>x?(B=u=h-w/2,G=y=h+w/2):k>x&&(p=k,l=v(x),u=h-l/2,y=u+l,k=x);d&&(n=2*r-n,k=2*r-k,null!==p&&(p=2*r-p));z=[\\\"M\\\",B,n,\\\"L\\\",G,n,y,k];null!==p&&z.push(y,p,u,p);z.push(u,k,\\\"Z\\\");a.shapeType=\\\"path\\\";a.shapeArgs={d:z};a.percentage=100*A;a.plotX=h;a.plotY=(n+(p||k))/2;a.tooltipPos=[h,a.plotY];a.slice=H;a.half=D;e&&!1===a.visible||(q+=A)})},sortByAngle:function(b){b.sort(function(b,c){return b.plotY-\\nc.plotY})},drawDataLabels:function(){var b=this.data,e=this.options.dataLabels.distance,c,f,d,g=b.length,t,q;for(this.center[2]-=2*e;g--;)d=b[g],f=(c=d.half)?1:-1,q=d.plotY,d.labelDistance=D(d.options.dataLabels&&d.options.dataLabels.distance,e),this.maxLabelDistance=Math.max(d.labelDistance,this.maxLabelDistance||0),t=this.getX(q,c,d),d.labelPos=[0,q,t+(d.labelDistance-5)*f,q,t+d.labelDistance*f,q,c?\\\"right\\\":\\\"left\\\",0];C.pie.prototype.drawDataLabels.call(this)}});e(\\\"pyramid\\\",\\\"funnel\\\",{neckWidth:\\\"0%\\\",\\nneckHeight:\\\"0%\\\",reversed:!0})})(e)});\\n\\n /* END modules/funnel.js*/\\n\\n\\nvar event = document.createEvent(\\\"HTMLEvents\\\");\\nevent.initEvent(\\\"load_highcharts\\\", false, false);\\nwindow.dispatchEvent(event);\\nconsole.log(\\\"Finish loading highchartsjs\\\");\\n\"" ] }, "metadata": {}, @@ -2429,19 +2449,19 @@ "text/html": [ "\n", " \n", - " \n", - " \n", - " \n", - " \n", + " \n", + " \n", + " \n", + " \n", " \n", " \n", "
\n", " \n", @@ -2449,9 +2469,9 @@ " \n", @@ -2459,7 +2479,7 @@ "\n" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n
\\n \\n\\n \\n\\n\\n\"" ] }, "execution_count": 19, @@ -2472,7 +2492,6 @@ " chart: {\n", " type: 'funnel'\n", " },\n", - " modules: ['modules/funnel'],\n", " title: {\n", " text: 'Sales funnel'\n", " },\n", @@ -2521,7 +2540,7 @@ " adapter: 'highcharts'\n", "}\n", "\n", - "funnel_hc = Daru::View::Plot.new(df, opts_funnel)\n", + "funnel_hc = Daru::View::Plot.new(df, opts_funnel, modules: ['modules/funnel'])\n", "pyramid_hc = Daru::View::Plot.new(df, opts_pyramid)\n", "\n", "combined = Daru::View::PlotList.new([funnel_hc, pyramid_hc])\n", diff --git a/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb b/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb index 645e1a6..8907752 100644 --- a/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb +++ b/spec/dummy_iruby/highcharts - Use HTML table (generated from daru) as data source.ipynb @@ -42,777 +42,787 @@ " /* BEGIN highstock.js */\n", "\n", "/*\n", - " Highstock JS v6.1.0 (2018-04-13)\n", + " Highstock JS v6.1.1 (2018-06-27)\n", "\n", " (c) 2009-2016 Torstein Honsi\n", "\n", " License: www.highcharts.com/license\n", "*/\n", - "(function(V,L){\"object\"===typeof module&&module.exports?module.exports=V.document?L(V):L:V.Highcharts=L(V)})(\"undefined\"!==typeof window?window:this,function(V){var L=function(){var a=\"undefined\"===typeof V?window:V,B=a.document,C=a.navigator&&a.navigator.userAgent||\"\",G=B&&B.createElementNS&&!!B.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,p=/(edge|msie|trident)/i.test(C)&&!a.opera,m=-1!==C.indexOf(\"Firefox\"),g=-1!==C.indexOf(\"Chrome\"),v=m&&4>parseInt(C.split(\"Firefox/\")[1],\n", - "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.0\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\"AppleWebKit\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", - "charts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\"Highcharts error #\"+p+\": www.highcharts.com/errors/\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\"d\",\n", - "g,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\"Setter\"])this[m+\"Setter\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\n", - "a&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\"M\"===a[c]||\"L\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\n", - "!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\n", - "v){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\"div\"));p&&m.appendChild(p);m.innerHTML=\"\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", - "year:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,l,b=p.toString().split(\"e\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\"e\")[0],m=y):(b[0]=b[0].split(\".\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\"-\":\"\")+(y?u.substr(0,y)+v:\"\");p+=u.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\"e\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\"width\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\"padding-left\")-a.getStyle(p,\"padding-right\");if(\"height\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\"padding-top\")-a.getStyle(p,\n", - "\"padding-bottom\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\"opacity\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\n", - "!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\"rgb\"===a||!a&&1===m[3]?\"rgb(\"+m[0]+\",\"+m[1]+\",\"+m[2]+\")\":\"a\"===a?m[3]:\"rgba(\"+m.join(\",\")+\")\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\n", - "z[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\"11px\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\n", - "14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\n", - "\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\"string\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\"inherit\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\n", - "f=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\n", - "B.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\"stroke-widthSetter\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\"stroke-width\"]?(B.prototype.fillSetter.call(this,this.stroke,\"stroke\",d),d.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===\n", - "k&&0===a&&this.hasStroke&&(d.removeAttribute(\"stroke\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&m(f,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\"base\").length?\n", - "N.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(e.createTextNode(\"Created with Highstock 6.1.0\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\n", - "h.left+\"px\",top:Math.ceil(h.top)-h.top+\"px\"})},k(),this.unSubPixelFix=G(N,\"resize\",k))},getStyle:function(a){return this.style=n({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\n", - "this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\n", - "c>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\"\\u2026\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\"\")}a.rotation=b;return n},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\"\").toString(),h=-1!==f.indexOf(\"\\x3c\"),x=d.childNodes,n,r=m(d,\"x\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\"ellipsis\"===q.textOverflow,K=q&&\"nowrap\"===\n", - "q.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\"style\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\"g\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\"\\x3c\");a=a.substring(d,a.indexOf(\"\\x3e\")-d);d=a.indexOf(k+\"\\x3d\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\"'===k||\"'\"===\n", - "k))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\" \")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(/
/g,\"\\x3c/span\\x3e\").split(//g):[f],f=c(f,function(a){return\"\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\s+|\\s+$/g,\n", - "\"\").replace(//g,\"\\x3c/span\\x3e|||\");c=k.split(\"|||\");t(c,function(k){if(\"\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\"tspan\"),w,E;(w=N(k,\"class\"))&&m(q,\"class\",w);if(w=N(k,\"style\"))w=w.replace(/(;| |^)color([ :])/,\"$1fill$2\"),m(q,\"style\",w);(E=N(k,\"href\"))&&!b&&(m(q,\"onclick\",'location.href\\x3d\"'+E+'\"'),m(q,\"class\",\"highcharts-anchor\"),z(q,{cursor:\"pointer\"}));k=y(k.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==k){q.appendChild(e.createTextNode(k));\n", - "h?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\"block\"}),m(q,\"dy\",u(q)));if(l){x=k.replace(/([^\\^])-/g,\"$1- \").split(\" \");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\"tspan\"),m(q,{dy:t,x:r}),w&&m(q,\"style\",w),d.appendChild(q)),\n", - "D>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\" \").replace(/- /g,\"-\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\"M\",a+f*x,k+h*n,\"A\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\"M\":\"L\",a+d*q,k+d*I,\"A\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\"\":\"Z\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\"M\",a+c,k,\"L\",a+d-c,k,\"C\",a+d,k,a+d,k,a+d,k+c,\"L\",a+d,k+A-\n", - "c,\"C\",a+d,k+A,a+d,k+A,a+d-c,k+A,\"L\",a+c,k+A,\"C\",a,k+A,a,k+A,a,k+A-c,\"L\",a,k+c,\"C\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\"button\"!==q&&\"label\"),w=e.text=r.text(\"\",0,0,I).attr({zIndex:1}),\n", - "E,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\((.*?)\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\"highcharts-\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\"button\"===q?\"\":\"highcharts-label-box\")+(q?\" highcharts-\"+q+\"-box\":\"\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\n", - "0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\"center\"===Q||\"right\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\"x\",a),void 0!==k&&w.attr(\"y\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\"\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\"text-alignSetter\"]=\n", - "function(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\"stroke-widthSetter\"]=function(a,k){a&&(z=!0);u=this[\"stroke-width\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\"r\"!==k&&(\"fill\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\n", - "a;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\"forceAnimate:x\"]=!0);J=Math.round(a);e.attr(\"translateX\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\"translateY\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\"width\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\n", - "2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\"mouseenter\");A(e.element,\"mouseleave\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===\n", - "b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\n", - "\"left\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\"SPAN\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\"\",whiteSpace:F||\"nowrap\"}),d=\n", - "b.offsetWidth),d=d>x);d&&/[ \\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\"px\",display:\"block\",whiteSpace:F||\"normal\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\"px\",top:D+(this.yCorr||0)+\"px\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\n", - "f[e]=f.transform=\"rotate(\"+a+\"deg)\";f[e+(v?\"Origin\":\"-origin\")]=f.transformOrigin=100*b+\"% \"+c+\"px\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\"-ms-transform\":u?\"-webkit-transform\":v?\"MozTransform\":e.opera?\"-o-transform\":\"\"},html:function(a,b,c){var f=this.createElement(\"span\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\"opacity\",\"visibility\"],function(c){t(a,\n", - "c+\"Setter\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\"\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\"align\"===b&&(b=\"textAlign\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\n", - "fontSize:this.style.fontSize,position:\"absolute\"});e.style.whiteSpace=\"nowrap\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\"translateX\"===d?x.left=k+\"px\":x.top=k+\"px\";a.doTransform=!0}var x,k=B(a.element,\"class\");k&&(k={className:k});b=a.div=a.div||C(\"div\",k,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,\n", - "pointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\"class\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\n", - "a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\"getUTC\"+a]();b.setTime(e);return a},\n", - "this.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))b[\"set\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\"setUTC\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\"getUTC\"+a]()},this.set=function(a,b,e){return b[\"setUTC\"+a](e)}):(this.get=function(a,b){return b[\"get\"+a]()},this.set=function(a,b,e){return b[\"set\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\n", - "arguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\n", - "function(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\"\";g=a.pick(g,\"%Y-%m-%d %H:%M:%S\");var l=this,b=new this.Date(m),e=this.get(\"Hours\",b),t=this.get(\"Day\",b),n=this.get(\"Date\",b),f=this.get(\"Month\",b),c=this.get(\"FullYear\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\" \"),w:t,b:h.shortMonths[f],\n", - "B:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\"Minutes\",b)),p:12>e?\"AM\":\"PM\",P:12>e?\"am\":\"pm\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\"%\"+b);)g=g.replace(\"%\"+b,\"function\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\"Milliseconds\",\n", - "f,c>=g.second?0:h*Math.floor(b.get(\"Milliseconds\",f)/h));c>=g.second&&b.set(\"Seconds\",f,c>=g.minute?0:h*Math.floor(b.get(\"Seconds\",f)/h));c>=g.minute&&b.set(\"Minutes\",f,c>=g.hour?0:h*Math.floor(b.get(\"Minutes\",f)/h));c>=g.hour&&b.set(\"Hours\",f,c>=g.day?0:h*Math.floor(b.get(\"Hours\",f)/h));c>=g.day&&b.set(\"Date\",f,c>=g.month?1:h*Math.floor(b.get(\"Date\",f)/h));c>=g.month&&(b.set(\"Month\",f,c>=g.year?0:h*Math.floor(b.get(\"Month\",f)/h)),n=b.get(\"FullYear\",f));c>=g.year&&b.set(\"FullYear\",f,n-n%h);c===g.week&&\n", - "b.set(\"Date\",f,b.get(\"Date\",f)-b.get(\"Day\",f)+m(l,1));n=b.get(\"FullYear\",f);l=b.get(\"Month\",f);var D=b.get(\"Date\",f),r=b.get(\"Hours\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\n", - "a%18E5&&\"000000000\"===b.dateFormat(\"%H%M%S%L\",a)&&(t[a]=\"day\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),\n", - "weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},\n", - "title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},\n", - "itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",\n", - "minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",\n", - "fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\n", - "a.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\"\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\n", - "f=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\n", - "0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\"align\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\"ellipsis\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\n", - "e.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\"afterGetPosition\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\"center\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\n", - "r.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\"afterGetLabelPosition\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\"M\",a,g,\"L\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\"Grid\":\n", - "\"grid\",r=e[D+\"LineWidth\"],J=e[D+\"LineColor\"],e=e[D+\"LineDashStyle\"];t||(n.stroke=J,n[\"stroke-width\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\"highcharts-\"+(c?c+\"-\":\"\")+\"grid-line\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\"attr\":\"animate\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\"Tick\":\"tick\",c=b.tickSize(f),h=this.mark,w=!h,\n", - "D=a.x;a=a.y;var r=v(e[f+\"Width\"],!n&&b.isXAxis?1:0),e=e[f+\"Color\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\"highcharts-\"+(n?n+\"-\":\"\")+\"tick\").add(b.axisGroup),h.attr({stroke:e,\"stroke-width\":r})),h[w?\"attr\":\"animate\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\n", - "b,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(f.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\n", - "l,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\n", - "x=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",\n", - "tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\n", - "-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\n", - "(k?\"xAxis\":\"yAxis\");e(this,\"init\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\"category\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\n", - "\"logarithmic\"===f;b.isDatetimeAxis=\"datetime\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\n", - "0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\"afterInit\")},setOptions:function(a){this.options=r(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\n", - "r(v[this.coll],a));e(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\n", - "-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\"\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\n", - "b.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\"afterGetSeriesExtremes\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\n", - "k.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\n", - "d,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\"M\",a,x,\"L\",\n", - "b,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\n", - "h,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\n", - "u=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\"foundExtremes\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\n", - "(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\n", - "d.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\n", - "this.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\n", - "a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\n", - "c||this.adjustTickAmount());e(this,\"afterSetTickPositions\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\n", - "this.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\n", - "b=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\n", - "this.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var d=this.options,k=d[a+\"Length\"],b=F(d[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(b&&k)return\"inside\"===d[a+\"Position\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\n", - "this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\n", - "r+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\n", - "f=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\"clip\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\"ellipsis\"===\n", - "t.styles.textOverflow?t.css({textOverflow:\"clip\"}):t.textPxLength>x&&t.css({width:x+\"px\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\"ellipsis\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\"ellipsis\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\n", - "this,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\n", - "g&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\n", - "g.tickInterval,a=m(\"auto\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\n", - "a.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\"class\":\"highcharts-plot-\"+(w?\"band \":\"line \")+(e.className||\"\")},d={},H=l.chart.renderer,E=w?\"bands\":\"lines\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\"stroke-width\":e.width},\n", - "e.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\"stroke-width\"]=e.borderWidth));d.zIndex=x;E+=\"-\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\"plot-\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\n", - "r.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\n", - "b)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\n", - "w:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\n", - "this.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\"%m-%d %H:%M:%S.%L\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\"millisecond\";for(h in y){if(a===y.week&&+n.dateFormat(\"%w\",b)===e&&\"00:00:00.000\"===f.substr(6)){h=\"week\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\"01-01 00:00:00.000\".substr(w[h]))break;\"week\"!==h&&(l=h)}h&&\n", - "(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\"footer\":\"header\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\"datetime\"===f.options.type&&p(a.key),h=l[b+\"Format\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){h=h.replace(\"{point.\"+a+\"}\",\"{point.\"+\n", - "a+\":\"+n+\"}\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\n", - "b){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\n", - "f&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\n", - "!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\n", - "t(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\n", - "!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\n", - "b,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\"hover\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\"mouseOut\");if(!n.series)return;n.firePointEvent(\"mouseOver\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\n", - "(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\"mousemove\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\n", - "a&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\n", - "a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\n", - "x=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\"Key\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\"scaleY\":\"scaleX\":\"scale\"+c]=q;p[\"translate\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\n", - "this,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\"highcharts-tracker\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\n", - "b&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});g(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\n", - "c.legend[(l+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][l]*f[l%2?\"x\":\"y\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\n", - "this.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\"highcharts-legend-box\").attr({r:q.borderRadius}).add(c),\n", - "g.isNew=!0);g.attr({stroke:q.borderColor,\"stroke-width\":q.borderWidth||0,fill:q.backgroundColor||\"none\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\n", - "0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\"triangle\",0,0,K,K).on(\"click\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(g.style).add(d),this.down=e.symbol(\"triangle-down\",0,0,K,K).on(\"click\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\n", - "c.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\"string\"===e?b.name=l[0]:\"number\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", - "a.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\n", - "l=u(e.valueDecimals,\"\"),n=e.valuePrefix||\"\",f=e.valueSuffix||\"\";C(b.pointArrayMap||[\"y\"],function(b){b=\"{point.\"+b;if(n||f)a=a.replace(RegExp(b+\"}\",\"g\"),n+b+\"}\"+f);a=a.replace(RegExp(b+\"}\",\"g\"),b+\":,.\"+l+\"f}\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\"click\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\n", - "a.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", + "(function(W,L){\"object\"===typeof module&&module.exports?module.exports=W.document?L(W):L:W.Highcharts=L(W)})(\"undefined\"!==typeof window?window:this,function(W){var L=function(){var a=\"undefined\"===typeof W?window:W,C=a.document,D=a.navigator&&a.navigator.userAgent||\"\",E=C&&C.createElementNS&&!!C.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\").createSVGRect,q=/(edge|msie|trident)/i.test(D)&&!a.opera,n=-1!==D.indexOf(\"Firefox\"),f=-1!==D.indexOf(\"Chrome\"),r=n&&4>parseInt(D.split(\"Firefox/\")[1],\n", + "10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\"Highstock\",version:\"6.1.1\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\"AppleWebKit\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\"Safari\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\"http://www.w3.org/2000/svg\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\"plotTop\",\"marginRight\",\"marginBottom\",\"plotLeft\"],noop:function(){},\n", + "charts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\"Highcharts error #\"+q+\": www.highcharts.com/errors/\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\"d\",\n", + "f,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\"Setter\"])this[n+\"Setter\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\n", + "a&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\"M\"===a[e]||\"L\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\n", + "!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\n", + "r){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\"div\"));q&&n.appendChild(q);n.innerHTML=\"\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\n", + "year:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\".\")[1]||\"\").split(\"e\")[0].length,y,p,c=q.toString().split(\"e\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\"e\")[0],n=y):(c[0]=c[0].split(\".\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\"-\":\"\")+(y?w.substr(0,y)+r:\"\");q+=w.substr(y).replace(/(\\d{3})(?=\\d)/g,\"$1\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\"e\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\"width\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\"padding-left\")-a.getStyle(q,\"padding-right\"));if(\"height\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\"padding-top\")-\n", + "a.getStyle(q,\"padding-bottom\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\"opacity\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\"rgb\"===a||!a&&1===n[3]?\"rgb(\"+n[0]+\",\"+n[1]+\",\"+n[2]+\")\":\"a\"===a?n[3]:\"rgba(\"+n.join(\",\")+\")\":f;\n", + "return w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\"11px\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\"\").replace(/</g,\"\\x3c\").replace(/>/g,\"\\x3e\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\"string\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\"inherit\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\n", + "a);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\"data-z-index\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\"data-z-index\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\"data-z-index\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\n", + "x[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\"stroke-widthSetter\"]=\n", + "C.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\"stroke-width\"]?(C.prototype.fillSetter.call(this,this.stroke,\"stroke\",x),x.setAttribute(\"stroke-width\",this[\"stroke-width\"]),this.hasStroke=!0):\"stroke-width\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\"stroke\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\"svg\").attr({version:\"1.1\",\"class\":\"highcharts-root\"}).css(this.getStyle(b));\n", + "h=b.element;a.appendChild(h);n(a,\"dir\",\"ltr\");-1===a.innerHTML.indexOf(\"xmlns\")&&n(h,\"xmlns\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\"base\").length?P.location.href.replace(/#.*?$/,\"\").replace(/<[^>]*>/g,\"\").replace(/([\\('\\)])/g,\"\\\\$1\").replace(/ /g,\"%20\"):\"\";this.createElement(\"desc\").add().element.appendChild(d.createTextNode(\"Created with Highstock 6.1.1\"));this.defs=this.createElement(\"defs\").add();this.allowHTML=e;\n", + "this.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\"px\",top:Math.ceil(k.top)-k.top+\"px\"})},g(),this.unSubPixelFix=E(P,\"resize\",g))},getStyle:function(a){return this.style=k({fontFamily:'\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif',fontSize:\"12px\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\n", + "isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\n", + "applyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\"\\u2026\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\"\")}a.rotation=c;return B},escapes:{\"\\x26\":\"\\x26amp;\",\"\\x3c\":\"\\x26lt;\",\"\\x3e\":\"\\x26gt;\",\"'\":\"\\x26#39;\",'\"':\"\\x26quot;\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\n", + "h=B(a.textStr,\"\").toString(),k=-1!==h.indexOf(\"\\x3c\"),l=x.childNodes,v,z=n(x,\"x\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\"ellipsis\"===t.textOverflow,G=t&&\"nowrap\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\"style\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\n", + "\"g\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\"\\x3c\");a=a.substring(x,a.indexOf(\"\\x3e\")-x);x=a.indexOf(g+\"\\x3d\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\"'===g||\"'\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\" \")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d\"font-weight:bold\"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d\"font-style:italic\"\\x3e').replace(//g,\"\\x3c/span\\x3e\").split(//g):[h],h=e(h,function(a){return\"\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\s+|\\s+$/g,\"\").replace(//g,\"\\x3c/span\\x3e|||\");h=g.split(\"|||\");m(h,function(g){if(\"\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\"tspan\"),u,F;(u=P(g,\"class\"))&&n(B,\"class\",u);if(u=P(g,\"style\"))u=u.replace(/(;| |^)color([ :])/,\"$1fill$2\"),n(B,\"style\",u);(F=P(g,\"href\"))&&!c&&(n(B,\"onclick\",\n", + "'location.href\\x3d\"'+F+'\"'),n(B,\"class\",\"highcharts-anchor\"),A(B,{cursor:\"pointer\"}));g=y(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,\"\")||\" \");if(\" \"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\"block\"}),n(B,\"dy\",w(B)));if(N){l=g.replace(/([^\\^])-/g,\"$1- \").split(\" \");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\"tspan\"),n(B,{dy:J,x:z}),u&&n(B,\"style\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\" \").replace(/- /g,\"-\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\"title\",y(a.textStr,[\"\\x26lt;\",\"\\x26gt;\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\n", + "r(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\"M\",a+h*M,g+l*u,\"A\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\"M\":\"L\",a+x*F,g+x*k,\"A\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\"\":\"Z\");return h},callout:function(a,\n", + "g,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\"M\",a+e,g,\"L\",a+x-e,g,\"C\",a+x,g,a+x,g,a+x,g+e,\"L\",a+x,g+b-e,\"C\",a+x,g+b,a+x,g+b,a+x-e,g+b,\"L\",a+e,g+b,\"C\",a,g+b,a,g+b,a,g+b-e,\"L\",a,g+e,\"C\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\n", + "4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\"button\"!==u&&\"label\"),t=d.text=F.text(\"\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\((.*?)\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\"highcharts-\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\n", + "v=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\"button\"===u?\"\":\"highcharts-label-box\")+(u?\" highcharts-\"+u+\"-box\":\"\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\"center\"===f||\"right\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\"x\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\"y\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\n", + "g};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\"\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\"text-alignSetter\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\"stroke-widthSetter\"]=\n", + "function(a,g){a&&(A=!0);w=this[\"stroke-width\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\"r\"!==g&&(\"fill\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\"forceAnimate:x\"]=!0);I=Math.round(a);d.attr(\"translateX\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\"translateY\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\n", + "{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\"width\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\"mouseenter\");x(d.element,\"mouseleave\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\n", + "f=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\"SPAN\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\"ellipsis\"===a.textOverflow&&(a.whiteSpace=\"nowrap\",a.overflow=\"hidden\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\n", + "htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\"left\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\"SPAN\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\n", + "this.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\"\",whiteSpace:G||\"nowrap\"}),K=b.offsetWidth),K=K>l);K&&/[ \\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\"px\",display:\"block\",whiteSpace:G||\"normal\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\n", + "this.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\"px\",top:t+(this.yCorr||0)+\"px\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\"rotate(\"+a+\"deg)\";e[k+(r?\"Origin\":\"-origin\")]=e.transformOrigin=100*b+\"% \"+c+\"px\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\n", + "\"-ms-transform\":w?\"-webkit-transform\":r?\"MozTransform\":d.opera?\"-o-transform\":\"\"},html:function(a,b,c){var e=this.createElement(\"span\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\"opacity\",\"visibility\"],function(c){m(a,c+\"Setter\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\"\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\n", + "b){\"align\"===b&&(b=\"textAlign\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\"absolute\"});k.style.whiteSpace=\"nowrap\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\n", + "g;\"translateX\"===b?k.left=g+\"px\":k.top=g+\"px\";a.doTransform=!0}var k,g=C(a.element,\"class\");g&&(g={className:g});b=a.div=a.div||D(\"div\",g,{position:\"absolute\",left:(a.translateX||0)+\"px\",top:(a.translateY||0)+\"px\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\"class\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\n", + "translateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\n", + "this.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\"getUTC\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\"Milliseconds\",\"Seconds\",\"Minutes\"]))c[\"set\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\"setUTC\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\"getUTC\"+\n", + "a]()},this.set=function(a,c,d){return c[\"setUTC\"+a](d)}):(this.get=function(a,c){return c[\"get\"+a]()},this.set=function(a,c,d){return c[\"set\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\n", + "y=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\"\";f=a.pick(f,\"%Y-%m-%d %H:%M:%S\");var p=this,c=new this.Date(n),d=this.get(\"Hours\",c),\n", + "m=this.get(\"Day\",c),k=this.get(\"Date\",c),b=this.get(\"Month\",c),e=this.get(\"FullYear\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\" \"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\"Minutes\",c)),p:12>d?\"AM\":\"PM\",P:12>d?\"am\":\"pm\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\"%\"+\n", + "b);)f=f.replace(\"%\"+b,\"function\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\"Milliseconds\",b,e>=f.second?0:h*Math.floor(c.get(\"Milliseconds\",b)/h));e>=f.second&&c.set(\"Seconds\",b,e>=f.minute?0:h*Math.floor(c.get(\"Seconds\",b)/h));e>=f.minute&&c.set(\"Minutes\",b,e>=f.hour?0:h*Math.floor(c.get(\"Minutes\",b)/h));e>=f.hour&&c.set(\"Hours\",b,e>=f.day?0:h*Math.floor(c.get(\"Hours\",\n", + "b)/h));e>=f.day&&c.set(\"Date\",b,e>=f.month?1:h*Math.floor(c.get(\"Date\",b)/h));e>=f.month&&(c.set(\"Month\",b,e>=f.year?0:h*Math.floor(c.get(\"Month\",b)/h)),k=c.get(\"FullYear\",b));e>=f.year&&c.set(\"FullYear\",b,k-k%h);e===f.week&&c.set(\"Date\",b,c.get(\"Date\",b)-c.get(\"Day\",b)+n(p,1));k=c.get(\"FullYear\",b);p=c.get(\"Month\",b);var t=c.get(\"Date\",b),z=c.get(\"Hours\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\"000000000\"===c.dateFormat(\"%H%M%S%L\",a)&&(m[a]=\"day\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\".split(\" \"),\n", + "symbols:[\"circle\",\"diamond\",\"square\",\"triangle\",\"triangle-down\"],lang:{loading:\"Loading...\",months:\"January February March April May June July August September October November December\".split(\" \"),shortMonths:\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\".split(\" \"),weekdays:\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\".split(\" \"),decimalPoint:\".\",numericSymbols:\"kMGTPE\".split(\"\"),resetZoom:\"Reset zoom\",resetZoomTitle:\"Reset zoom level 1:1\",thousandsSep:\" \"},global:{},time:a.Time.prototype.defaultOptions,\n", + "chart:{borderRadius:0,defaultSeriesType:\"line\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\"right\",x:-10,y:10}},width:null,height:null,borderColor:\"#335cad\",backgroundColor:\"#ffffff\",plotBorderColor:\"#cccccc\"},title:{text:\"Chart title\",align:\"center\",margin:15,widthAdjust:-44},subtitle:{text:\"\",align:\"center\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\"absolute\",color:\"#333333\"}},legend:{enabled:!0,align:\"center\",alignColumns:!0,layout:\"horizontal\",\n", + "labelFormatter:function(){return this.name},borderColor:\"#999999\",borderRadius:0,navigation:{activeColor:\"#003399\",inactiveColor:\"#cccccc\"},itemStyle:{color:\"#333333\",fontSize:\"12px\",fontWeight:\"bold\",textOverflow:\"ellipsis\"},itemHoverStyle:{color:\"#000000\"},itemHiddenStyle:{color:\"#cccccc\"},shadow:!1,itemCheckboxStyle:{position:\"absolute\",width:\"13px\",height:\"13px\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\"bottom\",x:0,y:0,title:{style:{fontWeight:\"bold\"}}},loading:{labelStyle:{fontWeight:\"bold\",\n", + "position:\"relative\",top:\"45%\"},style:{position:\"absolute\",backgroundColor:\"#ffffff\",opacity:.5,textAlign:\"center\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\"%A, %b %e, %H:%M:%S.%L\",second:\"%A, %b %e, %H:%M:%S\",minute:\"%A, %b %e, %H:%M\",hour:\"%A, %b %e, %H:%M\",day:\"%A, %b %e, %Y\",week:\"Week from %A, %b %e, %Y\",month:\"%B %Y\",year:\"%Y\"},footerFormat:\"\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\"#f7f7f7\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d\"font-size: 10px\"\\x3e{point.key}\\x3c/span\\x3e\\x3cbr/\\x3e',\n", + "pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e {series.name}: \\x3cb\\x3e{point.y}\\x3c/b\\x3e\\x3cbr/\\x3e',shadow:!0,style:{color:\"#333333\",cursor:\"default\",fontSize:\"12px\",pointerEvents:\"none\",whiteSpace:\"nowrap\"}},credits:{enabled:!0,href:\"http://www.highcharts.com\",position:{align:\"right\",x:-10,verticalAlign:\"bottom\",y:-5},style:{cursor:\"pointer\",color:\"#999999\",fontSize:\"9px\"},text:\"Highcharts.com\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\n", + "a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\"\";this.isNewLabel=this.isNew=\n", + "!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\n", + "c=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\"height\":\"width\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\n", + "b.attr(\"align\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\"ellipsis\"),b.css(G))},getPosition:function(f,n,p,c){var d=\n", + "this.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\"afterGetPosition\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\n", + "0:-e.labelOffset*(\"center\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\"afterGetLabelPosition\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\"M\",a,f,\"L\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\n", + "this.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\"Grid\":\"grid\",z=d[t+\"LineWidth\"],I=d[t+\"LineColor\"],d=d[t+\"LineDashStyle\"];m||(k.stroke=I,k[\"stroke-width\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\"highcharts-\"+(e?e+\"-\":\"\")+\"grid-line\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\"attr\":\"animate\"]({d:a,opacity:f})},renderMark:function(a,\n", + "f,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\"Tick\":\"tick\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\"Width\"],!k&&c.isXAxis?1:0),d=d[b+\"Color\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\"highcharts-\"+(k?k+\"-\":\"\")+\"tick\").add(c.axisGroup),h.attr({stroke:d,\"stroke-width\":z})),h[u?\"attr\":\"animate\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\n", + "e=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\"attr\":\"animate\"](a),this.isNewLabel=!1):(b.attr(\"y\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\n", + "n),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\"afterRender\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\n", + "h=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\"%H:%M:%S.%L\",second:\"%H:%M:%S\",minute:\"%H:%M\",hour:\"%H:%M\",day:\"%e. %b\",week:\"%e. %b\",month:\"%b '%y\",year:\"%Y\"},endOnTick:!1,labels:{enabled:!0,style:{color:\"#666666\",cursor:\"default\",fontSize:\"11px\"},x:0},maxPadding:.01,minorTickLength:2,\n", + "minorTickPosition:\"outside\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\"between\",tickPixelInterval:100,tickPosition:\"outside\",title:{align:\"middle\",style:{color:\"#666666\"}},type:\"linear\",minorGridLineColor:\"#f2f2f2\",minorGridLineWidth:1,minorTickColor:\"#999999\",lineColor:\"#ccd6eb\",lineWidth:1,gridLineColor:\"#e6e6e6\",tickColor:\"#ccd6eb\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\n", + "title:{rotation:270,text:\"Values\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"#000000\",textOutline:\"1px contrast\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\n", + "title:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\"xAxis\":\"yAxis\");d(this,\"init\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\"category\"===\n", + "l||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\"logarithmic\"===l;b.isDatetimeAxis=\"datetime\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\n", + "b.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\"afterInit\")},setOptions:function(a){this.options=z(this.defaultOptions,\"yAxis\"===this.coll&&this.defaultYAxisOptions,\n", + "[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\"afterSetOptions\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\n", + "b);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\"\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\"getSeriesExtremes\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\n", + "g.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\n", + "d(this,\"afterGetSeriesExtremes\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\n", + "toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\n", + "(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\"M\",a,k,\"L\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\"auto\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\n", + "this,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\n", + "G(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\n", + "f(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\"foundExtremes\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\n", + "(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\n", + "b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\n", + "this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\"between\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\"auto\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\n", + "this.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\n", + "b=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\"afterSetTickPositions\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\n", + "1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\"zoom\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\n", + "e[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\n", + "getThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\"right\":195a?\"left\":\"center\"},tickSize:function(a){var b=this.options,g=b[a+\"Length\"],c=G(b[a+\"Width\"],\"tick\"===a&&this.isXAxis?1:0);if(c&&g)return\"inside\"===b[a+\"Position\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\n", + "this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\n", + ".33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\n", + "this.labelRotation=0;else if(d&&(v=B,!z))for(m=\"clip\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\"ellipsis\"===H.styles.textOverflow?H.css({textOverflow:\"clip\"}):H.textPxLength>d&&H.css({width:d+\"px\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\"ellipsis\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\"ellipsis\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\n", + "a.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\"nowrap\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\n", + "!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\"auto\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\n", + "Math.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\"class\":\"highcharts-plot-\"+\n", + "(u?\"band \":\"line \")+(d.className||\"\")},K={},F=p.chart.renderer,B=u?\"bands\":\"lines\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\"stroke-width\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\"stroke-width\"]=d.borderWidth));K.zIndex=l;B+=\"-\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\"plot-\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\n", + "else if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\n", + "a.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\"hidden\":\"inherit\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\n", + "var e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\"%m-%d %H:%M:%S.%L\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\"millisecond\";for(u in p){if(a===p.week&&+b.dateFormat(\"%w\",d)===m&&\"00:00:00.000\"===c.substr(6)){u=\"week\";break}if(p[u]>\n", + "a){u=z;break}if(t[u]&&c.substr(t[u])!==\"01-01 00:00:00.000\".substr(t[u]))break;\"week\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\"footer\":\"header\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\"datetime\"===e.options.type&&n(a.key),u=k[d+\"Format\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\n", + "h&&b&&D(a.point&&a.point.tooltipDateKeys||[\"key\"],function(a){u=u.replace(\"{point.\"+a+\"}\",\"{point.\"+a+\":\"+b+\"}\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\"point\")+\"Formatter\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\"point\")+\"Format\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\n", + "a.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\"\",b=b.inverted;/touch/.test(a.type)&&\n", + "(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\"xAxis\":\"yAxis\"].push({axis:c,value:c.toValue(a[c.horiz?\n", + "\"chartX\":\"chartY\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\"y\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\n", + "return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\n", + "d?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\n", + "v=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\"hover\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\"mouseOut\");if(!d.series)return;\n", + "d.firePointEvent(\"mouseOver\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\"mousemove\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\n", + "b){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\n", + "c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\n", + "c=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\"Key\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\n", + "z;p[b]=f;q[G?a?\"scaleY\":\"scaleX\":\"scale\"+e]=v;q[\"translate\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\"highcharts-tracker\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\n", + "f?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\n", + "!1:void 0,!0)&&(a=a.concat(b.legendItems||(\"point\"===c.legendType?b.data:b)))});f(this,\"afterGetAllItems\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\"tv\":a.floating?\"\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\n", + "c.legend[(h+1)%2?\"legendHeight\":\"legendWidth\"]+[1,-1,-1,1][h]*d[h%2?\"x\":\"y\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\"left\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\n", + "h.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\"legend\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\n", + "d=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\"highcharts-legend-box\").attr({r:p.borderRadius}).add(e),\n", + "z.isNew=!0);z.attr({stroke:p.borderColor,\"stroke-width\":p.borderWidth||0,fill:p.backgroundColor||\"none\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\n", + "d.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\"triangle\",0,0,H,H).on(\"click\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\"\",15,10).addClass(\"highcharts-legend-navigation\").css(G.style).add(K),this.down=d.symbol(\"triangle-down\",0,0,H,H).on(\"click\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\n", + "this.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\"string\"===d?c.name=p[0]:\"number\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\n", + "a.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\"graphic\",\"dataLabel\",\"dataLabelUpper\",\"connector\",\"shadowGroup\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\n", + "m=w(d.valueDecimals,\"\"),k=d.valuePrefix||\"\",b=d.valueSuffix||\"\";D(c.pointArrayMap||[\"y\"],function(c){c=\"{point.\"+c;if(k||b)a=a.replace(RegExp(c+\"}\",\"g\"),k+c+\"}\"+b);a=a.replace(RegExp(c+\"}\",\"g\"),c+\":,.\"+m+\"f}\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\"click\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\n", + "a.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\"line\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\n", "marker:{lineWidth:0,lineColor:\"#ffffff\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\"#cccccc\",lineColor:\"#000000\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\"center\",formatter:function(){return null===this.y?\"\":a.numberFormat(this.y,-1)},style:{fontSize:\"11px\",fontWeight:\"bold\",color:\"contrast\",textOutline:\"1px contrast\"},verticalAlign:\"bottom\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\n", - "softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\"x\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\"xAxis\",\"yAxis\"],colorCounter:0,parallelArrays:[\"x\",\"y\"],coll:\"series\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\n", - "state:\"\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\"Data\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\"afterInit\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\n", - "w(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\"y\"===c&&d.toYData?\n", - "d.toYData(a):a[c];d[c+\"Data\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\"Data\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\"day\"===c?f.set(\"Date\",a,f.get(\"Date\",a)+d):\"month\"===c?f.set(\"Month\",a,f.get(\"Month\",a)+d):\"year\"===c&&f.set(\"FullYear\",a,f.get(\"FullYear\",a)+d),d=a.getTime()-\n", - "b);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", - "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\"Threshold\"]||f.threshold||0,className:\"highcharts-negative\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\"afterSetOptions\",{options:f});return f},getName:function(){return this.name||\n", - "\"Series \"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\"Index\",h=a+\"Counter\",x=d?d.length:w(f.options.chart[a+\"Count\"],f[a+\"Count\"]);b||(c=w(k[e],k[\"_\"+e]),z(c)||(f.series.length||(f[h]=0),k[\"_\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", - "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\n", - "k.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\n", - "0;u(this.parallelArrays,function(a){h[a+\"Data\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\n", - "w(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\"number\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\n", - "r=\"between\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\"between\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\"flags\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\n", - "D=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\n", - "0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\"afterTranslate\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\n", - "[\"_sharedClip\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\"m\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\"m\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\n", - "0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\"m\"]&&b[c+\"m\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\n", - "h,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\"zone-graph-\"+d,\"highcharts-graph highcharts-zone-graph-\"+d+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", - "b=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\"y\")+\"Axis\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\n", - "m=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\"zone-graph-\"+x].clip(e[x]),l&&a[\"zone-area-\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\"group\",\n", - "\"markerGroup\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\"resize\",b),B(d,\"destroy\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(z(this.colorIndex)?\"highcharts-color-\"+\n", - "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(k.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);k.attr({visibility:d})[e?\"attr\":\"animate\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\"inherit\":\n", - "\"hidden\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\"group\",\"series\",k,h,r);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\n", - "e));a.isDirty=!1;a.hasRendered=!0;b(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\n", - "d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\"left\":\"right\";n=0>r?\"right\":\"left\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\n", - "\"splice\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\"point\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\"shift\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\n", - "{series:e},\"splice\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\"remove\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\"remove\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],w=[\"navigatorSeries\",\n", - "\"baseSeries\"],m=e.finishedAnimating&&{animation:!1},F=[\"data\",\"name\",\"turboThreshold\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\n", - "(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\"rect\";e.shapeArgs=\n", - "a.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\"borderColor\";var f=n[\"stroke-width\"]||\"borderWidth\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\n", - "c&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\"stroke-width\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\n", - "l=a.Series,b=a.seriesType,e=a.setAnimation;b(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\"group\",\n", - "\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\n", - "E.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\"center\":E.half?\"right\":\"left\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\n", - "f,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\"shadow\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\"shadow\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\"select\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\"hidden\"}),\n", - "c.attr(e).attr({\"stroke-linejoin\":\"round\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\"Slice\");b=function(b){a.slice(\"select\"===b.type)};B(a,\"select\",b);B(a,\"unselect\",b);return a},isValid:function(){return a.isNumber(this.y,\n", - "!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(b){if(f[b])f[b][a?\"show\":\"hide\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\"hover\"!==f.state||f.setState(\"\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\n", - "this.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\n", - "a.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\n", - "align:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\n", - "l[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\"\\x3e\"===b&&a>d||\"\\x3c\"===b&&a=d||\"\\x3c\\x3d\"===b&&a<=d||\"\\x3d\\x3d\"===b&&a==d||\"\\x3d\\x3d\\x3d\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\n", - "c.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",d&&!t?\"hidden\":\"visible\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\"afterAnimate\",function(){c.visible&&u.show(!0);u[l.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\n", - "!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\"Format\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\"Formatter\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\"#000000\"),\"contrast\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\"#000000\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\"stroke-width\":n.borderWidth,\n", - "r:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\"highcharts-data-label\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+d.colorIndex+\" \"+(n.className||\"\")+(n.useHTML?\"highcharts-tracker\":\"\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\n", - "t&&(d.connector=t.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\"justify\"===y(e.overflow,\"justify\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\n", - "this.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\"attr\":\"animate\"](h).attr({align:t}),n=(d+720)%360,n=180n,\"left\"===t?h.y-=n?x.height:0:\"center\"===t?(h.x-=x.width/2,h.y-=x.height/2):\"right\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\n", - "h,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\"attr\":\"animate\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\"right\"===f?b.align=\"left\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\"left\"===f?b.align=\"right\":b.x=c.plotWidth-n,m=!0);\n", - "n=e.y+d;0>n&&(\"bottom\"===h?b.verticalAlign=\"top\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\"top\"===h?b.verticalAlign=\"bottom\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\n", - "f._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\n", - "p(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\n", - "Math.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\n", - "h.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\"xy\"===b?[1,0]:[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,e=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\n", - "n=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\n", - "v=this.chart.options.chart.ignoreHiddenSeries;n=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\"navigator\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\n", - "b}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\n", - "e[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\n", - "a;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\n", - "\"raw\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\"open\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\n", - "b.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\n", - "h.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=f,p(this.container,{cursor:\"move\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\"y\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\n", - "y=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\"drawPoints\",C);m(a.Series.prototype,\n", - "\"drawPoints\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\n", - "\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",\n", - "groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\n", - "[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\n", - "y(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\"function\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\n", - "n=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\n", - "units:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},\n", - "threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\n", - "a.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\"pin\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\"circle\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\"M\",\"circle\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\"L\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,\n", - "shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\n", - "b.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\"stroke-width\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\n", - "q*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\"\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\"flag\"===u?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\"chartY\":\"chartX\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\n", - "(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\n", - "a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\n", - "a.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\n", - "this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",e],[c.ownerDocument,\"mousemove\",f],[c.ownerDocument,\n", - "\"mouseup\",g]];y&&a.push([c,\"touchstart\",e],[c.ownerDocument,\"touchmove\",f],[c.ownerDocument,\"touchend\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\n", - "n(G.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\"changed\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\n", - "this.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\"render\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\n", - "this.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\n", - "b):f.setRange(1-b,1-h))}});n(G.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\n", - "g=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\"day\",[1,2,3,4]];x[5]=[\"week\",[1,2,3]];q=void 0===q.areaspline?\"line\":\"areaspline\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\n", - "height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},maskFill:m(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,\n", - "threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,e,f){a=f.width/\n", - "2;b=Math.round(a/3)+.5;f=f.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,f+.5,\"L\",-a-1,f+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,f-3,\"M\",b-1,4,\"L\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\n", - "f=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\"M\",m+g,n-h-f,\"L\",m+g,c,\"L\",m,c,\"L\",m,b,\"L\",m+g,b,\"L\",m+g,n+l+h].concat(d?[\"M\",m+g,c-k,\"L\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+g,\"L\",b,n+g,\"L\",b,n,\"L\",m+l+2*h,n].concat(d?[\"M\",a-k,n,\"L\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\n", - "f+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var l={cursor:f?\"ns-resize\":\"ew-resize\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\"highcharts-navigator-mask\"+(1===c?\"-inside\":\n", - "\"-outside\")).attr({fill:d?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][d]).add(h);\n", - "var c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\"stroke-width\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\n", - "d.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\n", - "e=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\"visible\"}),r=r&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\n", - "0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\"mousedown\");\n", - "e.push(C(c,\"mousemove\",f),C(c.ownerDocument,\"mouseup\",g));t&&(e.push(C(c,\"touchmove\",f),C(c.ownerDocument,\"touchend\",g)),e.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\"shades\",\"handles\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\"Mousedown\"](a,f)}))})});return d},shadesMousedown:function(a,\n", - "b){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\n", - "b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\n", - "0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\n", - "f,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",\n", - "triggerOp:\"navigator-drag\",DOMEvent:h}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\n", - "\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\n", - "this,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\"plotTop\":\"marginBottom\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\"marginRight\":\"plotLeft\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,\n", - "startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\"navigator-y-axis\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\"beforeRedraw\",function(){0a.inArray(d,l)?(d&&(D(d,\"updatedData\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\"Navigator \"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\n", - "h(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\"Navigator \"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\n", - "q.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\"updatedData\",this.updatedDataHandler);\n", - "C(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\n", - "a.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\n", - "Math.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\n", - "y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\n", - "g=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\"x\"===f||\"x\"===g?d.resetZoomButton=\"blocked\":\"y\"===f?l=!1:\"xy\"!==f&&\"xy\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\"afterSetChartSize\",\n", - "function(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\"bottom\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\n", - "g.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\"addPoint\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\n", - "a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\n", - "inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\n", - "!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\"month\"===u||\"year\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\"ytd\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\"beforeRender\",function(){c.clickButton(a)});\n", - "return}else\"all\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\"load\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},\n", - "{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\"blur\");c&&c.blur&&e(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\"mousedown\",h);this.unResize=C(a,\"resize\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\n", - "\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\n", - "function(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\"ytd\"===q?(l=m-d+a===c,A=!f):\"all\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\n", - "minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\"month\"===b||\"year\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\"Input\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",f.HCTime);this[a+\"DateBox\"].attr({text:e.dateFormat(c.inputDateFormat||\n", - "\"%b %e, %Y\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];m(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){m(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\n", - "b!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\"-\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\"min\"===a,y,k,A=this.inputGroup;this[a+\"Label\"]=k=p.label(v.lang[w?\"rangeSelectorFrom\":\n", - "\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\"DateBox\"]=p=p.label(\"\",A.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\"text-align\":\"center\"}).on(\"click\",function(){f.showInput(a);f[a+\"Input\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\"Input\"]=y=g(\"input\",{name:a,className:\"highcharts-range-selector\",\n", - "type:\"text\"},{top:h.plotTop+\"px\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\"#333333\"},l,u.inputStyle));m(y,b({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\"-9999em\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-\n", - "a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\"FullYear\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\n", - "t=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\"range-selector-group\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\"range-selector-buttons\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\n", - "5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\"text-align\":\"center\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\"div\",null,{position:\"relative\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\"input-group\").add(L),r.offset=0,c.drawInput(\"min\"),c.drawInput(\"max\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\n", - "d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\"left\"===w.align?U=w.x-e.spacing[3]:\"right\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\"top\"===X&&\"right\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\"left\"===y.align?U=B:\"right\"===y.align&&(U=-Math.max(e.axisOffset[1],\n", - "-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\"min\",a),c.setInputValue(\"max\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\n", - "!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\"bottom\"===X&&(Z=aa&&\"bottom\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\"top\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\"middle\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\n", - "\"px\",c.maxInput.style.marginTop=c.group.translateY+\"px\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\n", - "b=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\"Month\",year:\"FullYear\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\"get\"+b]();d[\"set\"+b](e+c);e===d[\"get\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\"afterGetContainer\",\n", - "function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\"render\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\n", - "!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\"redraw\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\"bottom\"===e?this.extraBottomMargin=!0:\"middle\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\n", - "(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\"afterSetExtremes\",function(a){e.render(a.min,a.max)}),f=C(a,\"redraw\",b),b());C(a,\"destroy\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\n", - "z=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\n", - "borderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\"datetime\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\"category\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:q},\n", - "scrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\n", - "return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});B(p,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\"getPlotLinePath\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\n", - "this.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\"xAxis\"!==p.coll&&\"yAxis\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\n", - "[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\"M\",y,A,\"L\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\"M\",\n", - "y,A,\"L\",z,E)}));return 0this.max?\"hidden\":\"visible\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\"left\"===this.labelAlign?c:0,c=\"right\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\n", - "c&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\n", - "(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\"close\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,\n", - "1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\"{point.change}\",(0=\n", + "u(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\"y\"===g&&c.toYData?\n", + "c.toYData(a):a[g];c[g+\"Data\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\"Data\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\"day\"===e?d.set(\"Date\",a,d.get(\"Date\",a)+c):\"month\"===e?d.set(\"Month\",a,d.get(\"Month\",a)+c):\"year\"===e&&d.set(\"FullYear\",a,d.get(\"FullYear\",a)+c),c=a.getTime()-\n", + "b);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\n", + "this.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\"Threshold\"]||b.threshold||0,className:\"highcharts-negative\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\"afterSetOptions\",{options:b});return b},getName:function(){return this.name||\n", + "\"Series \"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\"Index\",h=a+\"Counter\",k=c?c.length:u(l.options.chart[a+\"Count\"],l[a+\"Count\"]);b||(e=u(g[d],g[\"_\"+d]),A(e)||(l.series.length||(l[h]=0),g[\"_\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\"color\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\"symbol\",\n", + "this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\n", + "g.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\n", + "0;w(this.parallelArrays,function(a){l[a+\"Data\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\n", + "u(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\"number\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\n", + "z=\"between\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\"between\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\"flags\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\n", + "I=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\"number\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\n", + "0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\"afterTranslate\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\n", + "[\"_sharedClip\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\"m\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\"m\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\n", + "0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\"m\"]&&(b[h+\"m\"]=b[h+\"m\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\"m\"]&&b[e+\"m\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\"afterAnimate\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\n", + "k,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\"zone-graph-\"+c,\"highcharts-graph highcharts-zone-graph-\"+c+\" \"+(b.className||\"\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\n", + "b=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\"y\")+\"Axis\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\n", + "I=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\"zone-graph-\"+l].clip(h[l]),v&&a[\"zone-area-\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\"group\",\n", + "\"markerGroup\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\"resize\",b),C(c,\"destroy\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\"highcharts-\"+b+\" highcharts-series-\"+this.index+\" highcharts-\"+this.type+\"-series \"+(A(this.colorIndex)?\"highcharts-color-\"+\n", + "this.colorIndex+\" \":\"\")+(this.options.className||\"\")+(g.hasClass(\"highcharts-tracker\")?\" highcharts-tracker\":\"\"),!0);g.attr({visibility:c})[l?\"attr\":\"animate\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\"inherit\":\n", + "\"hidden\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\"group\",\"series\",g,k,t);a.markerGroup=a.plotGroup(\"markerGroup\",\"markers\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\n", + "h));a.isDirty=!1;a.hasRendered=!0;c(a,\"afterRender\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\"clientX\",\"plotY\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\n", + "c.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\"left\":\"right\";f=0>v?\"right\":\"left\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\"splice\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\"point\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\"shift\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\n", + "g=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\"splice\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\"remove\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\"remove\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\n", + "d.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\"group\",\"markerGroup\",\"dataLabelsGroup\"],n=[\"navigatorSeries\",\"baseSeries\"],G=d.finishedAnimating&&{animation:!1},I=[\"data\",\"name\",\"turboThreshold\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\n", + "f=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\"rect\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\n", + "\"addClass\":\"removeClass\"](\"highcharts-dense-data\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\"borderColor\";var b=k[\"stroke-width\"]||\"borderWidth\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\n", + "e,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\"stroke-width\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\n", + "p=a.Series,c=a.seriesType,d=a.setAnimation;c(\"pie\",\"line\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\"point\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\"#ffffff\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\n", + "trackerGroups:[\"group\",\"dataLabelsGroup\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\n", + "z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\"center\":B.half?\"right\":\"left\",z]}},drawGraph:null,\n", + "drawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\"shadow\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\"shadow\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\"select\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\n", + "e.attr(d).attr({\"stroke-linejoin\":\"round\"}).shadow(t,k));e.attr({visibility:h.visible?\"inherit\":\"hidden\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\"Slice\");c=function(b){a.slice(\"select\"===b.type)};C(a,\"select\",c);C(a,\"unselect\",\n", + "c);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\"graphic\",\"dataLabel\",\"connector\",\"shadowGroup\"],function(c){if(b[c])b[c][a?\"show\":\"hide\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\"hover\"!==b.state||b.setState(\"\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\n", + "c,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\n", + "1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\n", + "for(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\n", + "0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\"\\x3e\"===b&&a>c||\"\\x3c\"===b&&a=c||\"\\x3c\\x3d\"===b&&a<=c||\"\\x3d\\x3d\"===b&&a==c||\"\\x3d\\x3d\\x3d\"===b&&a===c?!0:!1):!0}\n", + "var c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\"dataLabelsGroup\",\"data-labels\",w&&!p?\"hidden\":\"visible\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\"afterAnimate\",function(){c.visible&&r.show(!0);r[k.animation?\"animate\":\"attr\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\n", + "e.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\"Format\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\"Formatter\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\"#000000\"),\"contrast\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\"#000000\"),k.cursor&&(p.cursor=k.cursor),t=\n", + "{fill:m.backgroundColor,stroke:m.borderColor,\"stroke-width\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\"highcharts-data-label\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\"data-label\"),h.addClass(\" highcharts-data-label-color-\"+e.colorIndex+\" \"+(m.className||\"\")+(m.useHTML?\" highcharts-tracker\":\"\"))),h.attr(t),h.css(p).shadow(m.shadow),\n", + "h.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\"afterDrawDataLabels\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\"justify\"===y(d.overflow,\"justify\");if(B&&(t=d.style.fontSize,\n", + "t=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\"attr\":\"animate\"](h).attr({align:p}),f=(u+720)%360,f=180f,\"left\"===p?h.y-=f?l.height:0:\"center\"===p?(h.x-=l.width/2,h.y-=l.height/2):\"right\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\n", + "null,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\"attr\":\"animate\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\"right\"===e?c.align=\"left\":c.x=-l,z=!0);l=d.x+k.width-\n", + "t;l>b.plotWidth&&(\"left\"===e?c.align=\"right\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\"bottom\"===h?c.verticalAlign=\"top\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\"top\"===h?c.verticalAlign=\"bottom\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\n", + "2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\"auto\"}).css({width:\"auto\",textOverflow:\"clip\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\n", + "l&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\n", + "!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\"xy\"===b?[1,0]:\n", + "[1],function(b){b=c[b?\"xAxis\":\"yAxis\"][0];var d=b.horiz,h=a[d?\"chartX\":\"chartY\"],d=d?\"mouseDownX\":\"mouseDownY\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\n", + "function(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\n", + "d,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\n", + "B&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\"highcharts-navigator-xaxis\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\"navigator\"===\n", + "this.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\n", + "this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\n", + "1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\"raw\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\n", + "val2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\"open\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\n", + "f=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\"pan\"}),this.mouseDownX=b,q(this.container,{cursor:\"move\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\n", + "1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\"x\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\"y\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\"drawPoints\",D);n(a.Series.prototype,\"drawPoints\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\n", + "p=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\"average\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\"%A, %b %e, %H:%M:%S.%L\",\"%A, %b %e, %H:%M:%S.%L\",\"-%H:%M:%S.%L\"],second:[\"%A, %b %e, %H:%M:%S\",\"%A, %b %e, %H:%M:%S\",\"-%H:%M:%S\"],minute:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],hour:[\"%A, %b %e, %H:%M\",\"%A, %b %e, %H:%M\",\"-%H:%M\"],day:[\"%A, %b %e, %Y\",\"%A, %b %e\",\"-%A, %b %e, %Y\"],week:[\"Week from %A, %b %e, %Y\",\n", + "\"%A, %b %e\",\"-%A, %b %e, %Y\"],month:[\"%B %Y\",\"%B\",\"-%B %Y\"],year:[\"%Y\",\"%Y\",\"-%Y\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\"sum\",groupPixelWidth:10},arearange:{approximation:\"range\"},areasplinerange:{approximation:\"range\"},columnrange:{approximation:\"range\",groupPixelWidth:10},candlestick:{approximation:\"ohlc\",groupPixelWidth:10},ohlc:{approximation:\"ohlc\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\"millisecond\",[1,2,5,10,20,25,50,100,200,500]],[\"second\",[1,2,5,\n", + "10,15,30]],[\"minute\",[1,2,5,10,15,30]],[\"hour\",[1,2,3,4,6,8,12]],[\"day\",[1]],[\"week\",[1]],[\"month\",[1,3,6]],[\"year\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\n", + "D(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\"function\"===\n", + "typeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\n", + "a},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\"ohlc\",\"column\",{lineWidth:1,tooltip:{pointFormat:'\\x3cspan style\\x3d\"color:{point.color}\"\\x3e\\u25cf\\x3c/span\\x3e \\x3cb\\x3e {series.name}\\x3c/b\\x3e\\x3cbr/\\x3eOpen: {point.open}\\x3cbr/\\x3eHigh: {point.high}\\x3cbr/\\x3eLow: {point.low}\\x3cbr/\\x3eClose: {point.close}\\x3cbr/\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\"open\",\n", + "\"high\",\"low\",\"close\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\"close\",pointAttrToOptions:{stroke:\"color\",\"stroke-width\":\"lineWidth\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\"pin\"]=\n", + "function(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\"circle\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\"M\",\"circle\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\"L\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\"flags\",\"column\",{pointRange:0,allowOverlapX:!1,shape:\"flag\",stackDistance:12,textAlign:\"center\",tooltip:{pointFormat:\"{point.text}\\x3cbr/\\x3e\"},\n", + "threshold:null,y:-30,fillColor:\"#ffffff\",lineWidth:1,states:{hover:{lineColor:\"#000000\",fillColor:\"#ccd6eb\"}},style:{fontSize:\"11px\",fontWeight:\"bold\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\"markerGroup\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\n", + "f,stroke:b||f,\"stroke-width\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\n", + "(v=r.graphic=f.label(\"\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\"flag\"===t?\"left\":\"center\",width:h.width,height:h.height,\"text-align\":h.textAlign}).addClass(\"highcharts-point\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\"chartY\":\"chartX\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\"changed\",\n", + "{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\n", + "c),q(a.to-c));w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\n", + "w(a,\"changed\",{from:a.from,to:a.to,trigger:\"scrollbar\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\n", + "this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\"click\",this.buttonToMinClick],[b[a[1]].element,\"click\",this.buttonToMaxClick],[this.track.element,\"click\",this.trackClick],[c,\"mousedown\",d],[c.ownerDocument,\"mousemove\",e],[c.ownerDocument,\"mouseup\",f]];y&&a.push([c,\"touchstart\",d],[c.ownerDocument,\"touchmove\",e],[c.ownerDocument,\"touchend\",f]);A(a,function(a){D.apply(null,\n", + "a)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\"track\",\"scrollbarRifles\",\"scrollbar\",\"scrollbarGroup\",\"group\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\"init\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\n", + "(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\"changed\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\"render\",function(a){var b=Math.min(d(this.options.min,\n", + "this.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\n", + "0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\"getOffset\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\n", + "1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\"destroy\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\n", + "h=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\"day\",[1,2,3,4]];H[5]=[\"week\",[1,2,3]];G=void 0===G.areaspline?\"line\":\"areaspline\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\"navigator-handle\",\"navigator-handle\"],enabled:!0,lineWidth:1,backgroundColor:\"#f2f2f2\",borderColor:\"#999999\"},\n", + "maskFill:n(\"#6685c2\").setOpacity(.3).get(),outlineColor:\"#cccccc\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\"average\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\"highcharts-navigator-series\",className:\"highcharts-navigator-series\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\"highcharts-navigator-xaxis\",tickLength:0,lineWidth:0,gridLineColor:\"#e6e6e6\",\n", + "gridLineWidth:1,tickPixelInterval:200,labels:{align:\"left\",style:{color:\"#999999\"},x:3,y:-4},crosshair:!1},yAxis:{className:\"highcharts-navigator-yaxis\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\"navigator-handle\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\"M\",-a-1,.5,\"L\",a,.5,\"L\",a,e+.5,\"L\",-a-1,e+.5,\"L\",-a-1,.5,\"M\",-b,4,\"L\",-b,e-\n", + "3,\"M\",b-1,4,\"L\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\n", + "m=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\"M\",m+h,n-k-g,\"L\",m+h,c,\"L\",m,c,\"L\",m,b,\"L\",m+h,b,\"L\",m+h,n+l+k].concat(e?[\"M\",m+h,c-f,\"L\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\"M\",m,n,\"L\",a,n,\"L\",a,n+h,\"L\",b,n+h,\"L\",b,n,\"L\",m+l+2*k,n].concat(e?[\"M\",a-f,n,\"L\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\n", + "function(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\"navigator\").attr({zIndex:8,visibility:\"hidden\"}).add();var k={cursor:e?\"ns-resize\":\"ew-resize\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\"highcharts-navigator-mask\"+(1===d?\"-inside\":\"-outside\")).attr({fill:c?b.maskFill:\"rgba(0,0,0,0)\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\"highcharts-navigator-outline\").attr({\"stroke-width\":b.outlineWidth,\n", + "stroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\"highcharts-navigator-handle highcharts-navigator-handle-\"+[\"left\",\"right\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\"stroke-width\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\n", + "delete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\n", + "(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\n", + "Math.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\"visible\"}),B=B&&!this.hasDragged?\"animate\":\"attr\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\n", + "l),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\"mousedown\");d.push(D(c,\"mousemove\",e),D(c.ownerDocument,\"mouseup\",f));m&&(d.push(D(c,\"touchmove\",e),D(c.ownerDocument,\"touchend\",f)),d.concat(a.getPartsEvents(\"touchstart\")));a.eventsToUnbind=d;a.series&&\n", + "a.series[0]&&d.push(D(a.series[0].xAxis,\"foundExtremes\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\"shades\",\"handles\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\"Mousedown\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\n", + "l,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\"navigator\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\n", + "!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\n", + "c-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\"scrollbar\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\n", + "(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\"navigator\",triggerOp:\"navigator-drag\",DOMEvent:k}));\"mousemove\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\n", + "null)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\"updatedData\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\n", + "e.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\"getMargins\",function(){var b=k.opposite?\"plotTop\":\"marginBottom\";a.inverted&&(b=k.opposite?\n", + "\"marginRight\":\"plotLeft\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\"navigator-x-axis\",yAxis:\"navigator-y-axis\",isX:!0,type:\"datetime\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\"navigator-y-axis\",\n", + "alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\"beforeRedraw\",function(){0a.inArray(c,l)?(c&&(z(c,\"updatedData\",e.updatedDataHandler),\n", + "delete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\"Navigator \"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\n", + "if(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\"Navigator \"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\"foundExtremes\",this.modifyBaseAxisExtremes);\n", + "w(b,function(b){D(b,\"show\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\"hide\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\"updatedData\",this.updatedDataHandler);D(b,\"remove\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\n", + "this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\"rangeSelectorButton\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\n", + "p&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\n", + "\"redraw\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\".split(\" \"),\n", + "function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\"zoom\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\"x\"===g||h&&\"x\"===f?d.resetZoomButton=\"blocked\":\"y\"===g?l=!1:(!h&&\"xy\"===g||h&&\"xy\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\n", + "d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\"beforeRender\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\"afterSetChartSize\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\n", + "this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\"bottom\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\"update\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\n", + "b),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\"afterUpdate\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\"addPoint\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\"afterAddSeries\",function(){this.navigator&&this.navigator.setBaseSeries(null,\n", + "!1)});D(v,\"afterUpdate\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\n", + "e=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\"top\",buttonTheme:{\"stroke-width\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\"right\",x:0,y:0},buttonPosition:{align:\"left\",x:0,y:0},labelStyle:{color:\"#666666\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\"Zoom\",rangeSelectorFrom:\"From\",rangeSelectorTo:\"To\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\n", + "k||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\"month\"===u||\"year\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\"ytd\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\n", + "p(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\"beforeRender\",function(){d.clickButton(a)});return}else\"all\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\"rangeSelectorButton\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\"load\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\n", + "this.options.selected=a},defaultButtons:[{type:\"month\",count:1,text:\"1m\"},{type:\"month\",count:3,text:\"3m\"},{type:\"month\",count:6,text:\"6m\"},{type:\"ytd\",text:\"YTD\"},{type:\"year\",count:1,text:\"1y\"},{type:\"all\",text:\"All\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\"blur\");c&&c.blur&&d(c,\"blur\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\n", + "D(a.container,\"mousedown\",h);this.unResize=D(a,\"resize\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\"load\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\"setExtremes\",function(c){this.max-this.min!==a.fixedRange&&\"rangeSelectorButton\"!==c.trigger&&\"updatedData\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\n", + "b,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\"ytd\"===m?(l=n-k+a===c,x=!e):\"all\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\n", + "l);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\"month\"===c||\"year\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\n", + "\"Input\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\"%Y-%m-%d\",e.HCTime);this[a+\"DateBox\"].attr({text:d.dateFormat(c.inputDateFormat||\"%b %e, %Y\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\"DateBox\"];n(this[a+\"Input\"],{left:b.translateX+c.x+\"px\",top:b.translateY+\"px\",width:c.width-2+\"px\",height:c.height-2+\"px\",border:\"2px solid silver\"})},hideInput:function(a){n(this[a+\"Input\"],{border:0,width:\"1px\",height:\"1px\"});this.setInputValue(a)},\n", + "drawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\"-\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\"rangeSelectorInput\"})))}\n", + "var d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\"min\"===a,w,g,x=this.inputGroup;this[a+\"Label\"]=g=l.label(r.lang[u?\"rangeSelectorFrom\":\"rangeSelectorTo\"],this.inputGroup.offset).addClass(\"highcharts-range-label\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\"DateBox\"]=l=l.label(\"\",x.offset).addClass(\"highcharts-range-input\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\"#cccccc\",\"stroke-width\":1,\n", + "\"text-align\":\"center\"}).on(\"click\",function(){d.showInput(a);d[a+\"Input\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\"Input\"]=w=f(\"input\",{name:a,className:\"highcharts-range-selector\",type:\"text\"},{top:h.plotTop+\"px\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\"#333333\"},p,q.inputStyle));n(w,c({position:\"absolute\",border:0,width:\"1px\",height:\"1px\",padding:0,textAlign:\"center\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\"-9999em\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\n", + "function(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\"top\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\"FullYear\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\n", + "this,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\"range-selector-group\").attr({zIndex:7}).add(),\n", + "d.buttonGroup=L=h.g(\"range-selector-buttons\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\"text-align\":\"center\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\"div\",null,{position:\"relative\",height:0,\n", + "zIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\"input-group\").add(R),t.offset=0,d.drawInput(\"min\"),d.drawInput(\"max\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\"top\"===Y&&\"right\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\"left\"===z.align?V=z.x-e.spacing[3]:\"right\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\n", + "this.titleCollision(e)&&\"top\"===Y&&\"right\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\"left\"===y.align?V=D:\"right\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\"min\",a),d.setInputValue(\"max\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\"bottom\"===Y&&(aa=ba&&\"bottom\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\"top\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\n", + "e.spacing[0]||0;else if(\"middle\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\"px\",d.maxInput.style.marginTop=d.group.translateY+\"px\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\"Month\",year:\"FullYear\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\"get\"+c]();d[\"set\"+c](e+b);e===d[\"get\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\n", + "e-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\"afterGetContainer\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\"render\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\"bottom\"===d?this.extraBottomMargin=\n", + "!0:\"middle\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\"update\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\"bottom\"===b?this.extraBottomMargin=!0:\"middle\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\"redraw\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\n", + "\"bottom\"===d?this.extraBottomMargin=!0:\"middle\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\"getMargins\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\"afterSetExtremes\",function(a){d.render(a.min,a.max)}),e=D(a,\"redraw\",b),b());D(a,\"destroy\",\n", + "function(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\n", + "q,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\"justify\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\"datetime\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\n", + "\"category\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\"x\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\n", + "h,g):new n(h,e)};v(q.prototype,\"autoLabelAlign\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\"yAxis\"===this.coll&&(c=c.top+\",\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\"right\"),b[c]=this,\"right\"):a.apply(this,[].slice.call(arguments,1))});C(q,\"destroy\",function(){var a=this.chart,b=this.options&&this.options.top+\",\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\n", + "delete a._labelPanes[b]});v(q.prototype,\"getPlotLinePath\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\"xAxis\"!==q.coll&&\"yAxis\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\"xAxis\"===a?\"yAxis\":\"xAxis\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\n", + "-1===a.options.id.indexOf(\"navigator\"):1){var b=a.isXAxis?\"yAxis\":\"xAxis\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}):r(D,\n", + "function(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\"M\",y,z,\"L\",B,A)}));return 0this.max?\"hidden\":\"visible\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\n", + "h.x):(c=\"left\"===this.labelAlign?d:0,d=\"right\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\"value\"===a||\"percent\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\n", + "void 0!==d)return b=\"value\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\"close\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\"y\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\"getExtremes\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\"{point.change}\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\n", - "g.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\"render\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", - "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(h.prototype.keepProps),init:function(a,b){var c=\"vertical\"!==a.options.legend.layout,m;this.coll=\"colorAxis\";m=n(this.defaultColorAxisOptions,\n", - "{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\"category\"===e.dataClassColor?(p=b.options.colors,\n", - "d=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", - "b=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\"x\"),this.top=p=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\n", - "d,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", - "this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\n", - "a.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\n", - "d,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\"M\",e-4,this.top-6,\"L\",e+4,this.top-6,e,this.top,\n", - "\"Z\"]:[\"M\",this.left,e,\"L\",this.left-6,e+6,this.left-6,e-6,\"Z\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\n", - "this.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\"\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\"\";void 0===f?y=\"\\x3c \":void 0===q&&(y=\"\\x3e \");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\" - \");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\n", - "visible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\"\"}),g([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\"afterGetAllItems\",function(b){var d=[],\n", - "c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\"afterUpdate\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\n", - "a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";h([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\"markerGroup\",\"dataLabelsGroup\"],\n", - "getSymbol:k,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\n", - "a.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\n", - "function(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\"dblclick\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\n", - "function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\n", - "(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\"beforeRender\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\n", - "a.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\n", - "120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\"pinchTranslate\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\"map\"===this.chart.options.chart.type&&\n", - "this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", - "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},g(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\n", - "h(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\"hc-middle-x\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\"hc-middle-y\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", - "c._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", - "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\n", - "k=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\"string\"===typeof k?a.maps[k]:k);t&&(l=\"_i\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\"translateX\"),z=t.attr(\"translateY\"),x=t.attr(\"scaleX\"),G=t.attr(\"scaleY\"),\n", - "t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\"stroke-width\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\n", - "render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\n", - "k=n?\"xData\":\"yData\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\"minSize\",\"maxSize\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\n", - "d.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\n", - "e=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\n", - "Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\n", - "if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\"M\");for(b=0;bn?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\n", + "n.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\"render\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\n", + "minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\"#999999\"},labels:{overflow:\"justify\",rotation:0},minColor:\"#e6ebf5\",maxColor:\"#003399\",tickLength:5,showInLegend:!0},keepProps:[\"legendGroup\",\"legendItemHeight\",\"legendItemWidth\",\"legendItem\",\"legendSymbol\"].concat(g.prototype.keepProps),init:function(a,c){var k=\"vertical\"!==a.options.legend.layout,b;this.coll=\"colorAxis\";b=h(this.defaultColorAxisOptions,\n", + "{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\"category\"===d.dataClassColor?(t=c.options.colors,\n", + "p=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\n", + "c=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\"x\"),this.top=b=a.attr(\"y\"),this.width=d=a.attr(\"width\"),this.height=a=a.attr(\"height\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\n", + "e,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\n", + "this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\n", + "a.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\n", + "c&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\"highcharts-coloraxis-marker\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\"M\",d-4,this.top-6,\"L\",\n", + "d+4,this.top-6,d,this.top,\"Z\"]:[\"M\",this.left,d,\"L\",this.left-6,d+6,this.left-6,d-6,\"Z\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\n", + "remove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\"\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\"\";void 0===x?f=\"\\x3c \":void 0===g&&(f=\"\\x3e \");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\" - \");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\n", + "drawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\"\"}),n([\"fill\",\"stroke\"],function(b){a.Fx.prototype[b+\"Setter\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\"afterGetAxes\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\"afterGetAllItems\",\n", + "function(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\"afterColorizeItem\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\"afterUpdate\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\n", + "a.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\"show\":\"hide\";g([\"graphic\",\"dataLabel\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\"hover\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\"value\"],axisTypes:[\"xAxis\",\"yAxis\",\"colorAxis\"],optionalAxis:\"colorAxis\",trackerGroups:[\"group\",\n", + "\"markerGroup\",\"dataLabelsGroup\"],getSymbol:l,parallelArrays:[\"x\",\"y\",\"value\"],colorKey:\"value\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\"fill\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\n", + "a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\n", + "!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\"zoomIn\"===b?\"topbutton\":\"bottombutton\").addClass(\"highcharts-map-navigation\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\"dblclick\",m);g.push(a)});this.updateEvents(h)};\n", + "g.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\"dblclick\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\"DOMMouseScroll\":\"mousewheel\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\n", + "this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\"x\",\"width\"],[\"y\",\"height\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\"beforeRender\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\n", + "(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\"highcharts-tracker\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\n", + "-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\"zoomOption\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\"xy\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\"pinchTranslate\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\"map\"===\n", + "this.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\"map\",\"scatter\",{allAreas:!0,animation:!1,nullColor:\"#f7f7f7\",borderColor:\"#cccccc\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\"hc-key\",dataLabels:{formatter:function(){return this.point.value},\n", + "inside:!0,verticalAlign:\"middle\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\"{point.name}: {point.value}\\x3cbr/\\x3e\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\"#cccccc\"}}},n(a.colorSeriesMixin,{type:\"map\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\"value\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\n", + "g(c||[],function(c){if(c.path){\"string\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\"hc-middle-x\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\"hc-middle-y\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\n", + "c._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\n", + "this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\n", + "v=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\"string\"===typeof v?a.maps[v]:v);r&&(m=\"_i\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\"string\"===typeof b[0]&&(c[d][\"hc-key\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\"translateX\"),w=r.attr(\"translateY\"),\n", + "E=r.attr(\"scaleX\"),F=r.attr(\"scaleY\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\"stroke-width\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\"stroke-width\"]||\"borderWidth\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\n", + "this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\n", + "v=l?\"xData\":\"yData\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\"minSize\",\"maxSize\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\n", + "!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\n", + "Math.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\n", + "b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\"WGS84\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\"default\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\n", + "this.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\"default\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\"M\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", + "onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:\"downloadPNG\",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:\"downloadJPEG\",onclick:function(){this.exportChart({type:\"image/jpeg\"})}},downloadPDF:{textKey:\"downloadPDF\",onclick:function(){this.exportChart({type:\"application/pdf\"})}},downloadSVG:{textKey:\"downloadSVG\",onclick:function(){this.exportChart({type:\"image/svg+xml\"})}}}};f.post=function(a,b,e){var c=r(\"form\",p({method:\"post\",action:a,enctype:\"multipart/form-data\"},\n", + "e),{display:\"none\"},z.body);F(b,function(a,b){r(\"input\",{type:\"hidden\",name:b,value:a},null,c)});c.submit();D(c)};t(A.prototype,{sanitizeSVG:function(a,b){if(b&&b.exporting&&b.exporting.allowHTML){var e=a.match(/<\\/svg>(.*?$)/);e&&e[1]&&(e='\\x3cforeignObject x\\x3d\"0\" y\\x3d\"0\" width\\x3d\"'+b.chart.width+'\" height\\x3d\"'+b.chart.height+'\"\\x3e\\x3cbody xmlns\\x3d\"http://www.w3.org/1999/xhtml\"\\x3e'+e[1]+\"\\x3c/body\\x3e\\x3c/foreignObject\\x3e\",a=a.replace(\"\\x3c/svg\\x3e\",e+\"\\x3c/svg\\x3e\"))}a=a.replace(/zIndex=\"[^\"]+\"/g,\n", "\"\").replace(/isShadow=\"[^\"]+\"/g,\"\").replace(/symbolName=\"[^\"]+\"/g,\"\").replace(/jQuery[0-9]+=\"[^\"]+\"/g,\"\").replace(/url\\((\"|")(\\S+)(\"|")\\)/g,\"url($2)\").replace(/url\\([^#]+#/g,\"url(#\").replace(/.*?$/,\"\\x3c/svg\\x3e\").replace(/(fill|stroke)=\"rgba\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\.]+)\\)\"/g,'$1\\x3d\"rgb($2)\" $1-opacity\\x3d\"$3\"').replace(/ /g,\n", - "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", + "\"\\u00a0\").replace(/­/g,\"\\u00ad\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\"div\",null,{position:\"absolute\",top:\"-9999em\",width:this.chartWidth+\"px\",height:this.chartHeight+\"px\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\n", "parseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\"SVGRenderer\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\"xAxis\",\"yAxis\",\"series\"],function(c){var d={};a[c]&&(d[c]=a[c],\n", - "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\n", - "e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\"beforePrint\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\n", - "k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\"cache-\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\"div\",{className:a},{position:\"absolute\",zIndex:1E3,padding:x+\"px\"},\n", - "d.container),y=q(\"div\",{className:\"highcharts-menu\"},null,l),u(y,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),r=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\"mouseleave\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),w(z,\"mouseup\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\n", - "if(f.isObject(a,!0)){var b;a.separator?b=q(\"hr\",null,null,y):(b=q(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\n", - "l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\"px\":b.left=e-x+\"px\";c+m+d.exportMenuHeight>G&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\"px\":b.top=c+m-x+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\n", - "k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",title:r(b.options.lang[c._titleKey],\"\"),zIndex:3});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&\n", - "(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\n", - "h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=\n", - "function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\"destroy\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\"redraw\",a.renderExporting);k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\n", + "b.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\"getSVG\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\n", + "a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\"chart\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\"beforePrint\");if(n=g&&a.chartWidth>\n", + "g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\"none\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\"afterPrint\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\"cache-\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\"div\",\n", + "{className:a},{position:\"absolute\",zIndex:1E3,padding:w+\"px\",pointerEvents:\"auto\"},d.fixedDiv||d.container),x=r(\"div\",{className:\"highcharts-menu\"},null,l),u(x,t({MozBoxShadow:\"3px 3px 10px #888\",WebkitBoxShadow:\"3px 3px 10px #888\",boxShadow:\"3px 3px 10px #888\"},n.menuStyle)),y=function(){u(l,{display:\"none\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\"mouseleave\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\"mouseenter\",function(){f.clearTimeout(l.hideTimer)}),q(z,\"mouseup\",function(b){d.pointer.inClass(b.target,\n", + "a)||y()}),q(l,\"click\",function(){d.openMenu&&y()})),k(b,function(a){\"string\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\"hr\",null,null,x):(b=r(\"div\",{className:\"highcharts-menu-item\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\"pointer\"},\n", + "n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\"block\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\"px\":b.left=e-w+\"px\";c+m+d.exportMenuHeight>H&&\"top\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\"px\":b.top=c+m-w+\"px\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\n", + "0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\"stroke-linecap\":\"round\",\n", + "title:B(b.options.lang[c._titleKey],\"\")});d.menuClassName=a.menuClassName||\"highcharts-menu-\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\"highcharts-button-symbol\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\"stroke-width\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\"spacingBox\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\"right\"===c.align?-1:1);b.exportSVGElements.push(d,\n", + "g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\"cache-\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\"mouseleave\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\n", + "0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\"M\",a,b+2.5,\"L\",a+e,b+2.5,\"M\",a,b+c/2+.5,\"L\",a+e,b+c/2+.5,\"M\",a,b+c-1.5,\"L\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\"exporting-group\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\n", + "a.isDirtyExporting=!1);q(a,\"destroy\",a.destroyExport)};q(A,\"init\",function(){var a=this;k([\"exporting\",\"navigation\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\"redraw\",a.renderExporting)})})(h)});\n", "\n", " /* END modules/exporting.js*/\n", "\n", " /* BEGIN highcharts-3d.js */\n", "\n", "/*\n", - " Highcharts JS v6.1.0 (2018-04-13)\n", + " Highcharts JS v6.1.1 (2018-06-27)\n", "\n", " 3D features for Highcharts JS\n", "\n", " @license: www.highcharts.com/license\n", "*/\n", - "(function(B){\"object\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\n", - "b.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\"C\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\n", - "b*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\"L\",a.x,a.y)});a.length&&(c[0]=\"M\",e&&c.push(\"Z\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\n", - "\"M\":\"L\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\"path\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\"attr\",function(a,m){if(\"object\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\n", - "C=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\n", - "for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\n", - "(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\"M\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\"L\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\"Z\"]),B=\n", - "0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\n", - "{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\"size\",\"color\",\"visible\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\n", - "g,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\"colorAxis\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\n", - "c.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\n", - "m.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\"chart\"!==k&&(\"flap\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\"ortho\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\n", - "g.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\n", - "z:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\"afterSetOptions\",function(){var a;\n", - "this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\n", - "y:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\n", - "\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\"Axis\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\"Axis\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\"Axis\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\"cuboid\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\n", - "a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\"plotGroup\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\n", - "(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\"setVisible\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\"hidden\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\n", - "b.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;de&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\n", + "[\"C\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\"L\",a.x,\n", + "a.y)});a.length&&(d[0]=\"M\",c&&d.push(\"Z\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\"M\":\"L\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\"path\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\"attr\",function(a,d){if(\"object\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\n", + "this.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\n", + "f=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\"M\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\"L\",d+y*a,e+x*m]),l=\n", + "l.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\"Z\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\n", + "y:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\"size\",\"color\",\"visible\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\n", + "a[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\"colorAxis\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\n", + "h.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\n", + "g=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\"chart\"!==l&&(\"flap\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\"ortho\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\n", + "-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\n", + "{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\"offset\",skew3d:!1},title:{position3d:null,\n", + "skew3d:null}});p(n,\"afterSetOptions\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\"colorAxis\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\"getPlotLinePath\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\"colorAxis\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\n", + "y:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\n", + "g(n.prototype,\"getLinePath\",function(a){return this.chart.is3d()&&\"colorAxis\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\"getPlotBandPath\",function(a){if(!this.chart.is3d()||\"colorAxis\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\"Axis\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\"Axis\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\"Axis\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\"cuboid\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\"animate\",function(b){if(this.chart.is3d()){var a=\n", + "arguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\n", + "v(m.column.prototype,\"plotGroup\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\"columnGroup\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\"setVisible\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\"visible\":\n", + "\"hidden\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\"afterInit\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eu||u>K?(++u,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),p.lengthu[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\"YY\":\"YYYY\":12=c[l]?(f[l]=\"dd\",k=!0):f[l].length||(f[l]=\"mm\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\n", - "m=c(k));for(var r=0,t=a;t<=g;t++)\"#\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\"date\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\n", - "e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\"json\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\n", - "c.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\n", - "[\"https://spreadsheets.google.com/feeds/cells\",c,e,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:f,dataType:\"json\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\n", - "a(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\"/\")||0<=m.$t.indexOf(\"-\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\"float\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\n", - "u&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,\n", - "parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==\n", - "d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bC||C>m?(++C,n=\"\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\"number\")):isNaN(Date.parse(n))?f(\"string\"):(n=n.replace(/\\//g,\"-\"),f(\"date\")),h.lengtht[\",\"]?\";\":\",\";d.decimalPoint||(d.decimalPoint=b>c?\".\":\",\",e.decimalRegex=new RegExp(\"^(-?[0-9]+)\"+d.decimalPoint+\"([0-9]+)$\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\"YY\":\"YYYY\":12=c[k]?(f[k]=\"dd\",l=!0):f[k].length||(f[k]=\"mm\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\n", + "q=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\"#\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\"date\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\"string\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\"tr\"),function(a,b){b>=f&&\n", + "b<=e&&u(a.children,function(a,e){(\"TD\"===a.tagName||\"TH\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\"http\"))return g&&c.error&&c.error(\"Invalid URL\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\"json\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\n", + "b){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\"text\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\n", + "[\"https://spreadsheets.google.com/feeds/cells\",f,d,\"public/values?alt\\x3djson\"].join(\"/\");h.ajax({url:e,dataType:\"json\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\n", + "(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\"/\")||0<=q.$t.indexOf(\"-\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\"float\"!==\n", + "u?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\"\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\n", + "a[2]-1,+a[1])},alternative:\"mm/dd/YY\"},\"mm/dd/YY\":{regex:/^([0-9]{1,2})[\\-\\/\\.]([0-9]{1,2})[\\-\\/\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\"string\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\"YYYY/mm/dd\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\n", + "f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\"object\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(C.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.0\\\",deg2rad:2*Math.PI/360,doc:B,hasBidiBug:v,hasTouch:B&&void 0!==B.documentElement.ontouchstart,isMS:p,isWebKit:-1!==C.indexOf(\\\"AppleWebKit\\\"),isFirefox:m,isChrome:g,isSafari:!g&&-1!==C.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(C),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:G,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var B=a.charts,C=a.doc,G=a.win;a.error=function(p,m){p=a.isNumber(p)?\\\"Highcharts error #\\\"+p+\\\": www.highcharts.com/errors/\\\"+p:p;if(m)throw Error(p);G.console&&console.log(p)};a.Fx=function(a,m,g){this.options=m;this.elem=a;this.prop=g};a.Fx.prototype={dSetter:function(){var a=this.paths[0],m=this.paths[1],g=[],v=this.now,z=a.length,u;if(1===v)g=this.toD;else if(z===m.length&&1>v)for(;z--;)u=parseFloat(a[z]),g[z]=isNaN(u)?m[z]:v*parseFloat(m[z]-u)+u;else g=m;this.elem.attr(\\\"d\\\",\\ng,null,!0)},update:function(){var a=this.elem,m=this.prop,g=this.now,v=this.options.step;if(this[m+\\\"Setter\\\"])this[m+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(m,g,null,!0):a.style[m]=g+this.unit;v&&v.call(a,g,this)},run:function(p,m,g){var v=this,z=v.options,u=function(a){return u.stopped?!1:v.step(a)},y=G.requestAnimationFrame||function(a){setTimeout(a,13)},l=function(){for(var b=0;b=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),g=l[this.prop]=!0,a.objectEach(l,function(a){!0!==\\na&&(g=!1)}),g&&u&&u.call(z),p=!1):(this.pos=v.easing((m-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),p=!0);return p},initPath:function(p,m,g){function v(a){var b,f;for(c=a.length;c--;)b=\\\"M\\\"===a[c]||\\\"L\\\"===a[c],f=/[a-zA-Z]/.test(a[c+3]),b&&f&&a.splice(c+1,0,a[c+1],a[c+2],a[c+1],a[c+2])}function z(a,b){for(;a.lengtha&&-Infinity=g&&(m=[1/g])));for(v=0;v=p||\\n!z&&u<=(m[v]+(m[v+1]||m[v]))/2);v++);return y=a.correctFloat(y*g,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,m){var g=a.length,v,z;for(z=0;zg&&(g=a[m]);return g};a.destroyObjectProperties=function(p,m){a.objectEach(p,function(a,\\nv){a&&a!==m&&a.destroy&&a.destroy();delete p[v]})};a.discardElement=function(p){var m=a.garbageBin;m||(m=a.createElement(\\\"div\\\"));p&&m.appendChild(p);m.innerHTML=\\\"\\\"};a.correctFloat=function(a,m){return parseFloat(a.toPrecision(m||14))};a.setAnimation=function(p,m){m.renderer.globalAnimation=a.pick(p,m.options.chart.animation,!0)};a.animObject=function(p){return a.isObject(p)?a.merge(p):{duration:p?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(p,m,g,v){p=+p||0;m=+m;var z=a.defaultOptions.lang,u=(p.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,l,b=p.toString().split(\\\"e\\\");-1===m?m=Math.min(u,20):a.isNumber(m)?m&&b[1]&&0>b[1]&&(y=m+ +b[1],0<=y?(b[0]=(+b[0]).toExponential(y).split(\\\"e\\\")[0],m=y):(b[0]=b[0].split(\\\".\\\")[0]||0,p=20>m?(b[0]*Math.pow(10,b[1])).toFixed(m):0,b[1]=0)):m=2;l=(Math.abs(b[1]?b[0]:p)+Math.pow(10,-Math.max(m,u)-1)).toFixed(m);u=String(a.pInt(l));y=3p?\\\"-\\\":\\\"\\\")+(y?u.substr(0,y)+v:\\\"\\\");p+=u.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+v);m&&(p+=g+l.slice(-m));b[1]&&0!==+p&&(p+=\\\"e\\\"+b[1]);return p};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(p,m,g){if(\\\"width\\\"===m)return Math.min(p.offsetWidth,p.scrollWidth)-a.getStyle(p,\\\"padding-left\\\")-a.getStyle(p,\\\"padding-right\\\");if(\\\"height\\\"===m)return Math.min(p.offsetHeight,p.scrollHeight)-a.getStyle(p,\\\"padding-top\\\")-a.getStyle(p,\\n\\\"padding-bottom\\\");G.getComputedStyle||a.error(27,!0);if(p=G.getComputedStyle(p,void 0))p=p.getPropertyValue(m),a.pick(g,\\\"opacity\\\"!==m)&&(p=a.pInt(p));return p};a.inArray=function(p,m,g){return(a.indexOfPolyfill||Array.prototype.indexOf).call(m,p,g)};a.grep=function(p,m){return(a.filterPolyfill||Array.prototype.filter).call(p,m)};a.find=Array.prototype.find?function(a,m){return a.find(m)}:function(a,m){var g,v=a.length;for(g=0;g>16,(g&65280)>>8,g&255,1]:4===m&&(z=[(g&3840)>>4|(g&3840)>>8,(g&240)>>4|g&240,(g&15)<<4|g&15,1])),!z)for(u=this.parsers.length;u--&&\\n!z;)y=this.parsers[u],(m=y.regex.exec(g))&&(z=y.parse(m));this.rgba=z||[]},get:function(a){var g=this.input,m=this.rgba,u;this.stops?(u=p(g),u.stops=[].concat(u.stops),B(this.stops,function(g,l){u.stops[l]=[u.stops[l][0],g.get(a)]})):u=m&&C(m[0])?\\\"rgb\\\"===a||!a&&1===m[3]?\\\"rgb(\\\"+m[0]+\\\",\\\"+m[1]+\\\",\\\"+m[2]+\\\")\\\":\\\"a\\\"===a?m[3]:\\\"rgba(\\\"+m.join(\\\",\\\")+\\\")\\\":g;return u},brighten:function(a){var g,z=this.rgba;if(this.stops)B(this.stops,function(g){g.brighten(a)});else if(C(a)&&0!==a)for(g=0;3>g;g++)z[g]+=m(255*a),0>\\nz[g]&&(z[g]=0),255d.width)d={width:0,height:0}}else d=this.htmlGetBBox();A.isSVG&&(a=d.width,A=d.height,f&&\\\"11px\\\"===f.fontSize&&17===Math.round(A)&&(d.height=A=\\n14),k&&(d.width=Math.abs(A*Math.sin(b))+Math.abs(a*Math.cos(b)),d.height=Math.abs(A*Math.cos(b))+Math.abs(a*Math.sin(b))));if(e&&0]*>/g,\\n\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,k,d){\\\"string\\\"===typeof a?d.setAttribute(k,a):a&&this.complexColor(a,k,d)},visibilitySetter:function(a,k,d){\\\"inherit\\\"===a?d.removeAttribute(k):this[k]!==a&&d.setAttribute(k,a);this[k]=a},zIndexSetter:function(a,d){var A=this.renderer,b=this.parentGroup,c=(b||A).element||A.box,f,h=this.element,I,x,A=c===A.box;\\nf=this.added;var n;y(a)&&(h.zIndex=a,a=+a,this[d]===a&&(f=!1),this[d]=a);if(f){(a=this.zIndex)&&b&&(b.handleZ=!0);d=c.childNodes;for(n=d.length-1;0<=n&&!I;n--)if(b=d[n],f=b.zIndex,x=!y(f),b!==h)if(0>a&&x&&!A&&!n)c.insertBefore(h,d[n]),I=!0;else if(k(f)<=a||x&&(!y(a)||0<=a))c.insertBefore(h,d[n+1]||null),I=!0;I||(c.insertBefore(h,d[A?3:0]||null),I=!0)}return I},_defaultSetter:function(a,k,d){d.setAttribute(k,a)}});B.prototype.yGetter=B.prototype.xGetter;B.prototype.translateXSetter=B.prototype.translateYSetter=\\nB.prototype.rotationSetter=B.prototype.verticalAlignSetter=B.prototype.rotationOriginXSetter=B.prototype.rotationOriginYSetter=B.prototype.scaleXSetter=B.prototype.scaleYSetter=B.prototype.matrixSetter=function(a,k){this[k]=a;this.doTransform=!0};B.prototype[\\\"stroke-widthSetter\\\"]=B.prototype.strokeSetter=function(a,k,d){this[k]=a;this.stroke&&this[\\\"stroke-width\\\"]?(B.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",d),d.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===\\nk&&0===a&&this.hasStroke&&(d.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};C=a.SVGRenderer=function(){this.init.apply(this,arguments)};n(C.prototype,{Element:B,SVG_NS:I,init:function(a,k,d,A,b,c){var f;A=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(A));f=A.element;a.appendChild(f);m(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&m(f,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=f;this.boxWrapper=A;this.alignedObjects=[];this.url=(r||x)&&e.getElementsByTagName(\\\"base\\\").length?\\nN.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(e.createTextNode(\\\"Created with Highstock 6.1.0\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=c;this.forExport=b;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(k,d,!1);var h;r&&a.getBoundingClientRect&&(k=function(){z(a,{left:0,top:0});h=a.getBoundingClientRect();z(a,{left:Math.ceil(h.left)-\\nh.left+\\\"px\\\",top:Math.ceil(h.top)-h.top+\\\"px\\\"})},k(),this.unSubPixelFix=G(N,\\\"resize\\\",k))},getStyle:function(a){return this.style=n({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();b(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());\\nthis.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var k=new this.Element;k.init(this,a);return k},draw:d,getRadialAttr:function(a,k){return{cx:a[0]-a[2]/2+k.cx*a[2],cy:a[1]-a[2]/2+k.cy*a[2],r:k.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},applyEllipsis:function(a,k,d,A){var b=a.rotation,c=d,f,h=0,I=d.length,x=function(a){k.removeChild(k.firstChild);a&&k.appendChild(e.createTextNode(a))},n;a.rotation=0;c=this.getSpanWidth(a,k);if(n=\\nc>A){for(;h<=I;)f=Math.ceil((h+I)/2),c=d.substring(0,f)+\\\"\\\\u2026\\\",x(c),c=this.getSpanWidth(a,k),h===I?h=I+1:c>A?I=f-1:h=f;0===I&&x(\\\"\\\")}a.rotation=b;return n},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var d=a.element,A=this,b=A.forExport,f=E(a.textStr,\\\"\\\").toString(),h=-1!==f.indexOf(\\\"\\\\x3c\\\"),x=d.childNodes,n,r=m(d,\\\"x\\\"),q=a.styles,l=a.textWidth,D=q&&q.lineHeight,F=q&&q.textOutline,P=q&&\\\"ellipsis\\\"===q.textOverflow,K=q&&\\\"nowrap\\\"===\\nq.whiteSpace,M=q&&q.fontSize,J,g,Q=x.length,q=l&&!a.added&&this.box,u=function(a){var b;b=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:M||A.style.fontSize||12;return D?k(D):A.fontMetrics(b,a.getAttribute(\\\"style\\\")?a:d).h},y=function(a,k){H(A.escapes,function(d,A){k&&-1!==w(d,k)||(a=a.toString().replace(new RegExp(d,\\\"g\\\"),A))});return a},N=function(a,k){var d;d=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(d,a.indexOf(\\\"\\\\x3e\\\")-d);d=a.indexOf(k+\\\"\\\\x3d\\\");if(-1!==d&&(d=d+k.length+1,k=a.charAt(d),'\\\"'===k||\\\"'\\\"===\\nk))return a=a.substring(d+1),a.substring(0,a.indexOf(k))};J=[f,P,K,D,F,M,l].join();if(J!==a.textCache){for(a.textCache=J;Q--;)d.removeChild(x[Q]);h||F||P||l||-1!==f.indexOf(\\\" \\\")?(q&&q.appendChild(d),f=h?f.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[f],f=c(f,function(a){return\\\"\\\"!==a}),t(f,function(k,f){var c,h=0;k=k.replace(/^\\\\s+|\\\\s+$/g,\\n\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");c=k.split(\\\"|||\\\");t(c,function(k){if(\\\"\\\"!==k||1===c.length){var x={},q=e.createElementNS(A.SVG_NS,\\\"tspan\\\"),w,E;(w=N(k,\\\"class\\\"))&&m(q,\\\"class\\\",w);if(w=N(k,\\\"style\\\"))w=w.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),m(q,\\\"style\\\",w);(E=N(k,\\\"href\\\"))&&!b&&(m(q,\\\"onclick\\\",'location.href\\\\x3d\\\"'+E+'\\\"'),m(q,\\\"class\\\",\\\"highcharts-anchor\\\"),z(q,{cursor:\\\"pointer\\\"}));k=y(k.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==k){q.appendChild(e.createTextNode(k));\\nh?x.dx=0:f&&null!==r&&(x.x=r);m(q,x);d.appendChild(q);!h&&g&&(!R&&b&&z(q,{display:\\\"block\\\"}),m(q,\\\"dy\\\",u(q)));if(l){x=k.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");E=1l,void 0===n&&(n=k),k&&1!==x.length?(q.removeChild(q.firstChild),H.unshift(x.pop())):(x=H,H=[],x.length&&!K&&(q=e.createElementNS(I,\\\"tspan\\\"),m(q,{dy:t,x:r}),w&&m(q,\\\"style\\\",w),d.appendChild(q)),\\nD>l&&(l=D)),x.length&&q.appendChild(e.createTextNode(x.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=F}h++}}});g=g||d.childNodes.length}),n&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),q&&q.removeChild(d),F&&a.applyTextOutline&&a.applyTextOutline(F)):d.appendChild(e.createTextNode(y(f)))}},getContrast:function(a){a=v(a).rgba;return 510Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(c),n=Math.sin(c),q=Math.cos(I),I=Math.sin(I);b=.001>b.end-c-Math.PI?0:1;f=[\\\"M\\\",a+f*x,k+h*n,\\\"A\\\",f,h,0,b,1,a+f*q,k+h*I];y(d)&&f.push(A?\\\"M\\\":\\\"L\\\",a+d*q,k+d*I,\\\"A\\\",d,d,0,b,0,a+d*x,k+d*n);f.push(A?\\\"\\\":\\\"Z\\\");return f},callout:function(a,k,d,A,b){var c=Math.min(b&&b.r||0,d,A),f=c+6,h=b&&b.anchorX;b=b&&b.anchorY;var I;I=[\\\"M\\\",a+c,k,\\\"L\\\",a+d-c,k,\\\"C\\\",a+d,k,a+d,k,a+d,k+c,\\\"L\\\",a+d,k+A-\\nc,\\\"C\\\",a+d,k+A,a+d,k+A,a+d-c,k+A,\\\"L\\\",a+c,k+A,\\\"C\\\",a,k+A,a,k+A,a,k+A-c,\\\"L\\\",a,k+c,\\\"C\\\",a,k,a,k,a+c,k];h&&h>d?b>k+f&&bh?b>k+f&&bA&&h>a+f&&hb&&h>a+f&&ha?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}},rotCorr:function(a,k,d){var A=a;k&&d&&(A=Math.max(A*Math.cos(k*l),4));return{x:-a/3*Math.sin(k*l),y:A}},label:function(k,d,b,c,f,h,I,x,q){var r=this,e=r.g(\\\"button\\\"!==q&&\\\"label\\\"),w=e.text=r.text(\\\"\\\",0,0,I).attr({zIndex:1}),\\nE,l,H=0,D=3,F=0,R,P,J,g,Q,m={},u,N,v=/^url\\\\((.*?)\\\\)$/.test(c),z=v,M,p,S,O;q&&e.addClass(\\\"highcharts-\\\"+q);z=v;M=function(){return(u||0)%2/2};p=function(){var a=w.element.style,k={};l=(void 0===R||void 0===P||Q)&&y(w.textStr)&&w.getBBox();e.width=(R||l.width||0)+2*D+F;e.height=(P||l.height||0)+2*D;N=D+r.fontMetrics(a&&a.fontSize,w).b;z&&(E||(e.box=E=r.symbols[c]||v?r.symbol(c):r.rect(),E.addClass((\\\"button\\\"===q?\\\"\\\":\\\"highcharts-label-box\\\")+(q?\\\" highcharts-\\\"+q+\\\"-box\\\":\\\"\\\")),E.add(e),a=M(),k.x=a,k.y=(x?-N:\\n0)+a),k.width=Math.round(e.width),k.height=Math.round(e.height),E.attr(n(k,m)),m={})};S=function(){var a=F+D,k;k=x?0:N;y(R)&&l&&(\\\"center\\\"===Q||\\\"right\\\"===Q)&&(a+={center:.5,right:1}[Q]*(R-l.width));if(a!==w.x||k!==w.y)w.attr(\\\"x\\\",a),void 0!==k&&w.attr(\\\"y\\\",k);w.x=a;w.y=k};O=function(a,k){E?E.attr(a,k):m[a]=k};e.onAdd=function(){w.add(e);e.attr({text:k||0===k?k:\\\"\\\",x:d,y:b});E&&y(f)&&e.attr({anchorX:f,anchorY:h})};e.widthSetter=function(k){R=a.isNumber(k)?k:null};e.heightSetter=function(a){P=a};e[\\\"text-alignSetter\\\"]=\\nfunction(a){Q=a};e.paddingSetter=function(a){y(a)&&a!==D&&(D=e.padding=a,S())};e.paddingLeftSetter=function(a){y(a)&&a!==F&&(F=a,S())};e.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==H&&(H=a,l&&e.attr({x:J}))};e.textSetter=function(a){void 0!==a&&w.textSetter(a);p();S()};e[\\\"stroke-widthSetter\\\"]=function(a,k){a&&(z=!0);u=this[\\\"stroke-width\\\"]=a;O(k,a)};e.strokeSetter=e.fillSetter=e.rSetter=function(a,k){\\\"r\\\"!==k&&(\\\"fill\\\"===k&&a&&(z=!0),e[k]=a);O(k,a)};e.anchorXSetter=function(a,k){f=e.anchorX=\\na;O(k,Math.round(a)-M()-J)};e.anchorYSetter=function(a,k){h=e.anchorY=a;O(k,a-g)};e.xSetter=function(a){e.x=a;H&&(a-=H*((R||l.width)+2*D),e[\\\"forceAnimate:x\\\"]=!0);J=Math.round(a);e.attr(\\\"translateX\\\",J)};e.ySetter=function(a){g=e.y=Math.round(a);e.attr(\\\"translateY\\\",g)};var ea=e.css;return n(e,{css:function(a){if(a){var k={};a=K(a);t(e.textProps,function(d){void 0!==a[d]&&(k[d]=a[d],delete a[d])});w.css(k);\\\"width\\\"in k&&p()}return ea.call(e,a)},getBBox:function(){return{width:l.width+2*D,height:l.height+\\n2*D,x:l.x-D,y:l.y-D}},shadow:function(a){a&&(p(),E&&E.shadow(a));return e},destroy:function(){A(e.element,\\\"mouseenter\\\");A(e.element,\\\"mouseleave\\\");w&&(w=w.destroy());E&&(E=E.destroy());B.prototype.destroy.call(e);e=r=p=S=O=null}})}});a.Renderer=C})(L);(function(a){var B=a.attr,C=a.createElement,G=a.css,p=a.defined,m=a.each,g=a.extend,v=a.isFirefox,z=a.isMS,u=a.isWebKit,y=a.pick,l=a.pInt,b=a.SVGRenderer,e=a.win,t=a.wrap;g(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===\\nb.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=g(this.styles,a);G(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,e=this.x||0,D=this.y||0,r=this.textAlign||\\n\\\"left\\\",t={left:0,center:.5,right:1}[r],q=this.styles,F=q&&q.whiteSpace;G(b,{marginLeft:c,marginTop:h});this.shadows&&m(this.shadows,function(a){G(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&m(b.childNodes,function(d){a.invertChild(d,b)});if(\\\"SPAN\\\"===b.tagName){var q=this.rotation,x=this.textWidth&&l(this.textWidth),K=[q,r,b.innerHTML,this.textWidth,this.textAlign].join(),d;(d=x!==this.oldTextWidth)&&!(d=x>this.oldTextWidth)&&((d=this.textPxLength)||(G(b,{width:\\\"\\\",whiteSpace:F||\\\"nowrap\\\"}),d=\\nb.offsetWidth),d=d>x);d&&/[ \\\\-]/.test(b.textContent||b.innerText)&&(G(b,{width:x+\\\"px\\\",display:\\\"block\\\",whiteSpace:F||\\\"normal\\\"}),this.oldTextWidth=x);K!==this.cTT&&(F=a.fontMetrics(b.style.fontSize).b,p(q)&&q!==(this.oldRotation||0)&&this.setSpanRotation(q,t,F),this.getSpanCorrection(!p(q)&&this.textPxLength||b.offsetWidth,F,t,q,r));G(b,{left:e+(this.xCorr||0)+\\\"px\\\",top:D+(this.yCorr||0)+\\\"px\\\"});this.cTT=K;this.oldRotation=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var f={},e=this.renderer.getTransformKey();\\nf[e]=f.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";f[e+(v?\\\"Origin\\\":\\\"-origin\\\")]=f.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";G(this.element,f)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});g(b.prototype,{getTransformKey:function(){return z&&!/Edge/.test(e.navigator.userAgent)?\\\"-ms-transform\\\":u?\\\"-webkit-transform\\\":v?\\\"MozTransform\\\":e.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var f=this.createElement(\\\"span\\\"),e=f.element,n=f.renderer,r=n.isSVG,l=function(a,b){m([\\\"opacity\\\",\\\"visibility\\\"],function(c){t(a,\\nc+\\\"Setter\\\",function(a,d,c,f){a.call(this,d,c,f);b[c]=d})});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&delete this.bBox;this.textStr=a;e.innerHTML=y(a,\\\"\\\");f.doTransform=!0};r&&l(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){\\\"align\\\"===b&&(b=\\\"textAlign\\\");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,\\nfontSize:this.style.fontSize,position:\\\"absolute\\\"});e.style.whiteSpace=\\\"nowrap\\\";f.css=f.htmlCss;r&&(f.add=function(a){var b,c=n.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;m(h.reverse(),function(a){function d(k,d){a[d]=k;\\\"translateX\\\"===d?x.left=k+\\\"px\\\":x.top=k+\\\"px\\\";a.doTransform=!0}var x,k=B(a.element,\\\"class\\\");k&&(k={className:k});b=a.div=a.div||C(\\\"div\\\",k,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,\\npointerEvents:a.styles&&a.styles.pointerEvents},b||c);x=b.style;g(a,{classSetter:function(a){return function(k){this.element.setAttribute(\\\"class\\\",k);a.className=k}}(b),on:function(){h[0].div&&f.on.apply({element:h[0].div},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||l(a,x)})}}else b=c;b.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})})(L);(function(a){var B=a.defined,C=a.each,G=a.extend,p=a.merge,m=a.pick,g=a.timeUnits,v=a.win;\\na.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(g){var u=m(g&&g.useUTC,!0),y=this;this.options=g=p(!0,this.options||{},g);this.Date=g.Date||v.Date;this.timezoneOffset=(this.useUTC=u)&&g.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(u&&!g.getTimezoneOffset&&!g.timezone))||this.timezoneOffset?(this.get=function(a,b){var e=b.getTime(),l=e-y.getTimezoneOffset(b);b.setTime(l);a=b[\\\"getUTC\\\"+a]();b.setTime(e);return a},\\nthis.set=function(l,b,e){var t;if(-1!==a.inArray(l,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))b[\\\"set\\\"+l](e);else t=y.getTimezoneOffset(b),t=b.getTime()-t,b.setTime(t),b[\\\"setUTC\\\"+l](e),l=y.getTimezoneOffset(b),t=b.getTime()+l,b.setTime(t)}):u?(this.get=function(a,b){return b[\\\"getUTC\\\"+a]()},this.set=function(a,b,e){return b[\\\"setUTC\\\"+a](e)}):(this.get=function(a,b){return b[\\\"get\\\"+a]()},this.set=function(a,b,e){return b[\\\"set\\\"+a](e)})},makeTime:function(g,u,y,l,b,e){var t,n,f;this.useUTC?(t=this.Date.UTC.apply(0,\\narguments),n=this.getTimezoneOffset(t),t+=n,f=this.getTimezoneOffset(t),n!==f?t+=f-n:n-36E5!==this.getTimezoneOffset(t-36E5)||a.isSafari||(t-=36E5)):t=(new this.Date(g,u,m(y,1),m(l,0),m(b,0),m(e,0))).getTime();return t},timezoneOffsetFunction:function(){var g=this,m=this.options,y=v.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(m.timezone){if(y)return function(a){return 6E4*-y.tz(a,m.timezone).utcOffset()};a.error(25)}return this.useUTC&&m.getTimezoneOffset?\\nfunction(a){return 6E4*m.getTimezoneOffset(a)}:function(){return 6E4*(g.timezoneOffset||0)}},dateFormat:function(g,m,y){if(!a.defined(m)||isNaN(m))return a.defaultOptions.lang.invalidDate||\\\"\\\";g=a.pick(g,\\\"%Y-%m-%d %H:%M:%S\\\");var l=this,b=new this.Date(m),e=this.get(\\\"Hours\\\",b),t=this.get(\\\"Day\\\",b),n=this.get(\\\"Date\\\",b),f=this.get(\\\"Month\\\",b),c=this.get(\\\"FullYear\\\",b),h=a.defaultOptions.lang,w=h.weekdays,D=h.shortWeekdays,r=a.pad,b=a.extend({a:D?D[t]:w[t].substr(0,3),A:w[t],d:r(n),e:r(n,2,\\\" \\\"),w:t,b:h.shortMonths[f],\\nB:h.months[f],m:r(f+1),y:c.toString().substr(2,2),Y:c,H:r(e),k:e,I:r(e%12||12),l:e%12||12,M:r(l.get(\\\"Minutes\\\",b)),p:12>e?\\\"AM\\\":\\\"PM\\\",P:12>e?\\\"am\\\":\\\"pm\\\",S:r(b.getSeconds()),L:r(Math.round(m%1E3),3)},a.dateFormats);a.objectEach(b,function(a,b){for(;-1!==g.indexOf(\\\"%\\\"+b);)g=g.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(l,m):a)});return y?g.substr(0,1).toUpperCase()+g.substr(1):g},getTimeTicks:function(a,u,y,l){var b=this,e=[],t={},n,f=new b.Date(u),c=a.unitRange,h=a.count||1,w;if(B(u)){b.set(\\\"Milliseconds\\\",\\nf,c>=g.second?0:h*Math.floor(b.get(\\\"Milliseconds\\\",f)/h));c>=g.second&&b.set(\\\"Seconds\\\",f,c>=g.minute?0:h*Math.floor(b.get(\\\"Seconds\\\",f)/h));c>=g.minute&&b.set(\\\"Minutes\\\",f,c>=g.hour?0:h*Math.floor(b.get(\\\"Minutes\\\",f)/h));c>=g.hour&&b.set(\\\"Hours\\\",f,c>=g.day?0:h*Math.floor(b.get(\\\"Hours\\\",f)/h));c>=g.day&&b.set(\\\"Date\\\",f,c>=g.month?1:h*Math.floor(b.get(\\\"Date\\\",f)/h));c>=g.month&&(b.set(\\\"Month\\\",f,c>=g.year?0:h*Math.floor(b.get(\\\"Month\\\",f)/h)),n=b.get(\\\"FullYear\\\",f));c>=g.year&&b.set(\\\"FullYear\\\",f,n-n%h);c===g.week&&\\nb.set(\\\"Date\\\",f,b.get(\\\"Date\\\",f)-b.get(\\\"Day\\\",f)+m(l,1));n=b.get(\\\"FullYear\\\",f);l=b.get(\\\"Month\\\",f);var D=b.get(\\\"Date\\\",f),r=b.get(\\\"Hours\\\",f);u=f.getTime();b.variableTimezone&&(w=y-u>4*g.month||b.getTimezoneOffset(u)!==b.getTimezoneOffset(y));f=f.getTime();for(u=1;fe.length&&C(e,function(a){0===\\na%18E5&&\\\"000000000\\\"===b.dateFormat(\\\"%H%M%S%L\\\",a)&&(t[a]=\\\"day\\\")})}e.info=G(a,{higherRanks:t,totalRange:c*h});return e}}})(L);(function(a){var B=a.color,C=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),symbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),\\nweekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},\\ntitle:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",labelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},\\nitemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",position:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",\\nminute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:B(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",\\nfontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(B){a.defaultOptions=C(!0,a.defaultOptions,B);a.time.update(C(a.defaultOptions.global,a.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;\\na.time=new a.Time(C(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(C,p,m){return a.time.dateFormat(C,p,m)}})(L);(function(a){var B=a.correctFloat,C=a.defined,G=a.destroyObjectProperties,p=a.fireEvent,m=a.isNumber,g=a.merge,v=a.pick,z=a.deg2rad;a.Tick=function(a,g,l,b){this.axis=a;this.pos=g;this.type=l||\\\"\\\";this.isNewLabel=this.isNew=!0;l||b||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,m=a.options,l=a.chart,b=a.categories,e=a.names,t=this.pos,n=m.labels,\\nf=a.tickPositions,c=t===f[0],h=t===f[f.length-1],e=b?v(b[t],e[t],t):t,b=this.label,f=f.info,w;a.isDatetimeAxis&&f&&(w=m.dateTimeLabelFormats[f.higherRanks[t]||f.unitName]);this.isFirst=c;this.isLast=h;m=a.labelFormatter.call({axis:a,chart:l,isFirst:c,isLast:h,dateTimeLabelFormat:w,value:a.isLog?B(a.lin2log(e)):e,pos:t});if(C(b))b&&b.attr({text:m});else{if(this.label=b=C(m)&&n.enabled?l.renderer.text(m,0,0,n.useHTML).css(g(n.style)).add(a.labelGroup):null)b.textPxLength=b.getBBox().width;this.rotation=\\n0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var g=this.axis,l=g.options.labels,b=a.x,e=g.chart.chartWidth,t=g.chart.spacing,n=v(g.labelLeft,Math.min(g.pos,t[3])),t=v(g.labelRight,Math.max(g.isRadial?0:g.pos+g.len,e-t[1])),f=this.label,c=this.rotation,h={left:0,center:.5,right:1}[g.labelAlign||f.attr(\\\"align\\\")],w=f.getBBox().width,D=g.getSlotWidth(),r=D,J=1,q,F={};if(c||!1===l.overflow)0>c&&b-h*wt&&(q=Math.round((e-b)/Math.cos(c*z)));else if(e=b+(1-h)*w,b-h*wt&&(r=t-a.x+r*h,J=-1),r=Math.min(D,r),rr||g.autoRotation&&(f.styles||{}).width)q=r;q&&(F.width=q,(l.style||{}).textOverflow||(F.textOverflow=\\\"ellipsis\\\"),f.css(F))},getPosition:function(g,m,l,b){var e=this.axis,t=e.chart,n=b&&t.oldChartHeight||t.chartHeight;g={x:g?a.correctFloat(e.translate(m+l,null,null,b)+e.transB):e.left+\\ne.offset+(e.opposite?(b&&t.oldChartWidth||t.chartWidth)-e.right-e.left:0),y:g?n-e.bottom+e.offset-(e.opposite?e.height:0):a.correctFloat(n-e.translate(m+l,null,null,b)-e.transB)};p(this,\\\"afterGetPosition\\\",{pos:g});return g},getLabelPosition:function(a,g,l,b,e,t,n,f){var c=this.axis,h=c.transA,w=c.reversed,D=c.staggerLines,r=c.tickRotCorr||{x:0,y:0},J=e.y,q=b||c.reserveSpaceDefault?0:-c.labelOffset*(\\\"center\\\"===c.labelAlign?.5:1),F={};C(J)||(J=0===c.side?l.rotation?-8:-l.getBBox().height:2===c.side?\\nr.y+8:Math.cos(l.rotation*z)*(r.y-l.getBBox(!1,0).height/2));a=a+e.x+q+r.x-(t&&b?t*h*(w?-1:1):0);g=g+J-(t&&!b?t*h*(w?1:-1):0);D&&(l=n/(f||1)%D,c.opposite&&(l=D-l-1),g+=c.labelOffset/D*l);F.x=a;F.y=Math.round(g);p(this,\\\"afterGetLabelPosition\\\",{pos:F});return F},getMarkPath:function(a,g,l,b,e,t){return t.crispLine([\\\"M\\\",a,g,\\\"L\\\",a+(e?0:-l),g+(e?l:0)],b)},renderGridLine:function(a,g,l){var b=this.axis,e=b.options,t=this.gridLine,n={},f=this.pos,c=this.type,h=b.tickmarkOffset,w=b.chart.renderer,D=c?c+\\\"Grid\\\":\\n\\\"grid\\\",r=e[D+\\\"LineWidth\\\"],J=e[D+\\\"LineColor\\\"],e=e[D+\\\"LineDashStyle\\\"];t||(n.stroke=J,n[\\\"stroke-width\\\"]=r,e&&(n.dashstyle=e),c||(n.zIndex=1),a&&(n.opacity=0),this.gridLine=t=w.path().attr(n).addClass(\\\"highcharts-\\\"+(c?c+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(b.gridGroup));if(!a&&t&&(a=b.getPlotLinePath(f+h,t.strokeWidth()*l,a,!0)))t[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:g})},renderMark:function(a,g,l){var b=this.axis,e=b.options,t=b.chart.renderer,n=this.type,f=n?n+\\\"Tick\\\":\\\"tick\\\",c=b.tickSize(f),h=this.mark,w=!h,\\nD=a.x;a=a.y;var r=v(e[f+\\\"Width\\\"],!n&&b.isXAxis?1:0),e=e[f+\\\"Color\\\"];c&&(b.opposite&&(c[0]=-c[0]),w&&(this.mark=h=t.path().addClass(\\\"highcharts-\\\"+(n?n+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(b.axisGroup),h.attr({stroke:e,\\\"stroke-width\\\":r})),h[w?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(D,a,c[0],h.strokeWidth()*l,b.horiz,t),opacity:g}))},renderLabel:function(a,g,l,b){var e=this.axis,t=e.horiz,n=e.options,f=this.label,c=n.labels,h=c.step,e=e.tickmarkOffset,w=!0,D=a.x;a=a.y;f&&m(D)&&(f.xy=a=this.getLabelPosition(D,a,f,t,c,e,\\nb,h),this.isFirst&&!this.isLast&&!v(n.showFirstLabel,1)||this.isLast&&!this.isFirst&&!v(n.showLastLabel,1)?w=!1:!t||c.step||c.rotation||g||0===l||this.handleOverflow(a),h&&b%h&&(w=!1),w&&m(a.y)?(a.opacity=l,f[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(f.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(g,m,l){var b=this.axis,e=b.horiz,t=this.getPosition(e,this.pos,b.tickmarkOffset,m),n=t.x,f=t.y,b=e&&n===b.pos+b.len||!e&&f===b.pos?-1:1;l=v(l,1);this.isActive=!0;this.renderGridLine(m,\\nl,b);this.renderMark(t,l,b);this.renderLabel(t,m,l,g);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){G(this,this.axis)}}})(L);var da=function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.color,g=a.correctFloat,v=a.defaultOptions,z=a.defined,u=a.deg2rad,y=a.destroyObjectProperties,l=a.each,b=a.extend,e=a.fireEvent,t=a.format,n=a.getMagnitude,f=a.grep,c=a.inArray,h=a.isArray,w=a.isNumber,D=a.isString,r=a.merge,J=a.normalizeTickInterval,q=a.objectEach,F=a.pick,\\nx=a.removeEvent,K=a.splat,d=a.syncTimeout,H=a.Tick,E=function(){this.init.apply(this,arguments)};a.extend(E.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",\\ntickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,\\n-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(a,d){var k=d.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!k:k;b.isXAxis=k;b.coll=b.coll||\\n(k?\\\"xAxis\\\":\\\"yAxis\\\");e(this,\\\"init\\\",{userOptions:d});b.opposite=d.opposite;b.side=d.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(d);var A=this.options,f=A.type;b.labelFormatter=A.labels.formatter||b.defaultLabelFormatter;b.userOptions=d;b.minPixelPadding=0;b.reversed=A.reversed;b.visible=!1!==A.visible;b.zoomEnabled=!1!==A.zoomEnabled;b.hasNames=\\\"category\\\"===f||!0===A.categories;b.categories=A.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\n\\\"logarithmic\\\"===f;b.isDatetimeAxis=\\\"datetime\\\"===f;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=z(A.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=A.minRange||A.maxZoom;b.range=A.range;b.offset=A.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;b.crosshair=F(A.crosshair,K(a.options.tooltip.crosshairs)[k?0:1],!1);d=b.options.events;-1===c(b,a.axes)&&(k?a.axes.splice(a.xAxis.length,\\n0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&k&&void 0===b.reversed&&(b.reversed=!0);q(d,function(a,k){B(b,k,a)});b.lin2log=A.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);e(this,\\\"afterInit\\\")},setOptions:function(a){this.options=r(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],\\nr(v[this.coll],a));e(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var k=this.axis,d=this.value,b=k.chart.time,c=k.categories,f=this.dateTimeLabelFormat,h=v.lang,x=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,e=x&&x.length,r,n=k.options.labels.format,k=k.isLog?Math.abs(d):k.tickInterval;if(n)r=t(n,this,b);else if(c)r=d;else if(f)r=b.dateFormat(f,d);else if(e&&1E3<=k)for(;e--&&void 0===r;)b=Math.pow(h,e+1),k>=b&&0===10*d%b&&null!==x[e]&&0!==d&&(r=a.numberFormat(d/b,\\n-1)+x[e]);void 0===r&&(r=1E4<=Math.abs(d)?a.numberFormat(d,-1):a.numberFormat(d,-1,void 0,\\\"\\\"));return r},getSeriesExtremes:function(){var a=this,d=a.chart;e(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();l(a.series,function(k){if(k.visible||!d.options.chart.ignoreHiddenSeries){var b=k.options,A=b.threshold,c;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=A&&(A=null);if(a.isXAxis)b=k.xData,\\nb.length&&(k=p(b),c=G(b),w(k)||k instanceof Date||(b=f(b,w),k=p(b),c=G(b)),b.length&&(a.dataMin=Math.min(F(a.dataMin,b[0],k),k),a.dataMax=Math.max(F(a.dataMax,b[0],c),c)));else if(k.getExtremes(),c=k.dataMax,k=k.dataMin,z(k)&&z(c)&&(a.dataMin=Math.min(F(a.dataMin,k),k),a.dataMax=Math.max(F(a.dataMax,c),c)),z(A)&&(a.threshold=A),!b.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,d,b,c,f,h){var k=this.linkedParent||this,A=1,x=0,I=c?\\nk.oldTransA:k.transA;c=c?k.oldMin:k.min;var e=k.minPixelPadding;f=(k.isOrdinal||k.isBroken||k.isLog&&f)&&k.lin2val;I||(I=k.transA);b&&(A*=-1,x=k.len);k.reversed&&(A*=-1,x-=A*(k.sector||k.len));d?(a=(a*A+x-e)/I+c,f&&(a=k.lin2val(a))):(f&&(a=k.val2lin(a)),a=w(c)?A*(a-c)*I+x+A*e+(w(h)?I*h:0):void 0);return a},toPixels:function(a,d){return this.translate(a,!1,!this.horiz,null,!0)+(d?0:this.pos)},toValue:function(a,d){return this.translate(a-(d?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,\\nd,b,c,f){var k=this.chart,A=this.left,h=this.top,x,I,e=b&&k.oldChartHeight||k.chartHeight,r=b&&k.oldChartWidth||k.chartWidth,n;x=this.transB;var q=function(a,k,d){if(ad)c?a=Math.min(Math.max(k,a),d):n=!0;return a};f=F(f,this.translate(a,null,null,b));f=Math.min(Math.max(-1E5,f),1E5);a=b=Math.round(f+x);x=I=Math.round(e-f-x);w(f)?this.horiz?(x=h,I=e-this.bottom,a=b=q(a,A,A+this.width)):(a=A,b=r-this.right,x=I=q(x,h,h+this.height)):(n=!0,c=!1);return n&&!c?null:k.renderer.crispLine([\\\"M\\\",a,x,\\\"L\\\",\\nb,I],d||1)},getLinearTickPositions:function(a,d,b){var k,A=g(Math.floor(d/a)*a);b=g(Math.ceil(b/a)*a);var c=[],f;g(A+a)===A&&(f=20);if(this.single)return[d];for(d=A;d<=b;){c.push(d);d=g(d+a,f);if(d===k)break;k=d}return c},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?F(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,d=a.options,b=a.tickPositions,c=a.minorTickInterval,f=[],h=a.pointRangePadding||0,x=a.min-\\nh,h=a.max+h,e=h-x;if(e&&e/c=this.minRange,q=this.minRange,c=(q-b+d)/2,c=[d-c,F(a.min,d-c)],f&&(c[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=G(c),b=[d+q,F(a.max,d+q)],f&&(b[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),b=p(b),b-d=K?(y=K,E=0):d.dataMax<=K&&(v=K,q=0)),d.min=F(u,y,d.dataMin),d.max=F(p,v,d.dataMax));f&&(d.positiveValuesOnly&&!k&&0>=Math.min(d.min,F(d.dataMin,d.min))&&a.error(10,1),d.min=g(d.log2lin(d.min),15),d.max=g(d.log2lin(d.max),15));d.range&&z(d.max)&&(d.userMin=d.min=\\nu=Math.max(d.dataMin,d.minFromRange()),d.userMax=p=d.max,d.range=null);e(d,\\\"foundExtremes\\\");d.beforePadding&&d.beforePadding();d.adjustForMinRange();!(t||d.axisPointRange||d.usePercentage||r)&&z(d.min)&&z(d.max)&&(b=d.max-d.min)&&(!z(u)&&E&&(d.min-=b*E),!z(p)&&q&&(d.max+=b*q));w(c.softMin)&&!w(d.userMin)&&(d.min=Math.min(d.min,c.softMin));w(c.softMax)&&!w(d.userMax)&&(d.max=Math.max(d.max,c.softMax));w(c.floor)&&(d.min=Math.max(d.min,c.floor));w(c.ceiling)&&(d.max=Math.min(d.max,c.ceiling));m&&z(d.dataMin)&&\\n(K=K||0,!z(u)&&d.min=K?d.min=K:!z(p)&&d.max>K&&d.dataMax<=K&&(d.max=K));d.tickInterval=d.min===d.max||void 0===d.min||void 0===d.max?1:r&&!D&&H===d.linkedParent.options.tickPixelInterval?D=d.linkedParent.tickInterval:F(D,this.tickAmount?(d.max-d.min)/Math.max(this.tickAmount-1,1):void 0,t?1:(d.max-d.min)*H/Math.max(d.len,H));x&&!k&&l(d.series,function(a){a.processData(d.min!==d.oldMin||d.max!==d.oldMax)});d.setAxisTranslation(!0);d.beforeSetTickPositions&&d.beforeSetTickPositions();\\nd.postProcessTickInterval&&(d.tickInterval=d.postProcessTickInterval(d.tickInterval));d.pointRange&&!D&&(d.tickInterval=Math.max(d.pointRange,d.tickInterval));k=F(c.minTickInterval,d.isDatetimeAxis&&d.closestPointRange);!D&&d.tickIntervald.tickInterval&&1E3d.max)),!!this.tickAmount));this.tickAmount||(d.tickInterval=d.unsquish());this.setTickPositions()},setTickPositions:function(){var a=\\nthis.options,d,b=a.tickPositions;d=this.getMinorTickInterval();var c=a.tickPositioner,f=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&z(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,\\na.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,c&&(c=c.apply(this,[this.min,this.max])))&&(this.tickPositions=d=c);this.paddedTicks=d.slice(0);this.trimTicks(d,f,h);this.isLinked||(this.single&&2>d.length&&(this.min-=.5,this.max+=.5),b||\\nc||this.adjustTickAmount());e(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,d,b){var k=a[0],c=a[a.length-1],f=this.minPointOffset||0;if(!this.isLinked){if(d&&-Infinity!==k)this.min=k;else for(;this.min-f>a[0];)a.shift();if(b)this.max=c;else for(;this.max+fd&&(this.finalTickAmt=d,d=5);this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,d=\\nthis.tickPositions,b=this.tickAmount,c=this.finalTickAmt,f=d&&d.length,h=F(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(fb&&(this.tickInterval*=2,this.setTickPositions());if(z(c)){for(a=b=d.length;a--;)(3===c&&1===a%2||2>=c&&0c&&(a=c)),z(b)&&(dc&&(d=c))),this.displayBtn=void 0!==a||void 0!==d,this.setExtremes(a,d,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var d=this.chart,b=this.options,c=b.offsets||[0,0,0,0],f=this.horiz,h=this.width=Math.round(a.relativeLength(F(b.width,d.plotWidth-c[3]+c[1]),d.plotWidth)),x=this.height=Math.round(a.relativeLength(F(b.height,d.plotHeight-c[0]+c[2]),d.plotHeight)),e=this.top=Math.round(a.relativeLength(F(b.top,d.plotTop+c[0]),d.plotHeight,d.plotTop)),\\nb=this.left=Math.round(a.relativeLength(F(b.left,d.plotLeft+c[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-x-e;this.right=d.chartWidth-h-b;this.len=Math.max(f?h:x,0);this.pos=f?b:e},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var d=this.isLog,k=d?this.lin2log(this.min):this.min,d=d?this.lin2log(this.max):\\nthis.max;null===a||-Infinity===a?a=k:Infinity===a?a=d:k>a?a=k:da?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var d=this.options,k=d[a+\\\"Length\\\"],b=F(d[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(b&&k)return\\\"inside\\\"===d[a+\\\"Position\\\"]&&(k=-k),[k,b]},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&\\nthis.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,d=this.horiz,b=this.tickInterval,c=b,f=this.len/(((this.categories?1:0)+this.max-this.min)/b),h,x=a.rotation,e=this.labelMetrics(),r,q=Number.MAX_VALUE,n,w=function(a){a/=f||1;a=1=a)r=w(Math.abs(e.h/Math.sin(u*a))),d=\\nr+Math.abs(a/360),d(b.step||0)&&!b.rotation&&(this.staggerLines||1)*this.len/c||!d&&(b.style&&parseInt(b.style.width,10)||f&&f-a.spacing[3]||.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,d=a.renderer,b=this.tickPositions,c=this.ticks,\\nf=this.options.labels,h=this.horiz,x=this.getSlotWidth(),e=Math.max(1,Math.round(x-2*(f.padding||5))),r={},q=this.labelMetrics(),n=f.style&&f.style.textOverflow,w,E,H=0,t;D(f.rotation)||(r.rotation=f.rotation||0);l(b,function(a){(a=c[a])&&a.label&&a.label.textPxLength>H&&(H=a.label.textPxLength)});this.maxLabelLength=H;if(this.autoRotation)H>e&&H>q.h?r.rotation=this.labelRotation:this.labelRotation=0;else if(x&&(w=e,!n))for(E=\\\"clip\\\",e=b.length;!h&&e--;)if(t=b[e],t=c[t].label)t.styles&&\\\"ellipsis\\\"===\\nt.styles.textOverflow?t.css({textOverflow:\\\"clip\\\"}):t.textPxLength>x&&t.css({width:x+\\\"px\\\"}),t.getBBox().height>this.len/b.length-(q.h-q.f)&&(t.specificTextOverflow=\\\"ellipsis\\\");r.rotation&&(w=H>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,n||(E=\\\"ellipsis\\\"));if(this.labelAlign=f.align||this.autoLabelAlign(this.labelRotation))r.align=this.labelAlign;l(b,function(a){var d=(a=c[a])&&a.label,b={};d&&(d.attr(r),!w||f.style&&f.style.width||!(w=this.min&&a<=this.max)k[a]||(k[a]=new H(this,a)),c&&k[a].isNew&&k[a].render(d,!0,.1),k[a].render(d)},render:function(){var b=\\nthis,c=b.chart,f=b.options,h=b.isLog,x=b.isLinked,r=b.tickPositions,n=b.axisTitle,E=b.ticks,D=b.minorTicks,t=b.alternateBands,K=f.stackLabels,F=f.alternateGridColor,g=b.tickmarkOffset,J=b.axisLine,m=b.showAxis,y=C(c.renderer.globalAnimation),v,u;b.labelEdge.length=0;b.overlap=!1;l([E,D,t],function(a){q(a,function(a){a.isActive=!1})});if(b.hasData()||x)b.minorTickInterval&&!b.categories&&l(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),r.length&&(l(r,function(a,d){b.renderTick(a,d)}),\\ng&&(0===b.min||b.single)&&(E[-1]||(E[-1]=new H(b,-1,null,!0)),E[-1].render(-1))),F&&l(r,function(d,k){u=void 0!==r[k+1]?r[k+1]+g:b.max-g;0===k%2&&dv&&(!u||f<=z)&&void 0!==f&&b.push(f),f>z&&(c=!0),f=n;else v=this.lin2log(v),z=this.lin2log(z),a=u?this.getMinorTickInterval():\\ng.tickInterval,a=m(\\\"auto\\\"===a?null:a,this._minorAutoInterval,g.tickPixelInterval/(u?5:1)*(z-v)/((u?l/this.tickPositions.length:l)||1)),a=p(a,null,C(a)),b=G(this.getLinearTickPositions(a,v,z),this.log2lin),u||(this._minorAutoInterval=a/5);u||(this.tickInterval=a);return b};B.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};B.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,B){var C=a.arrayMax,G=a.arrayMin,p=a.defined,m=a.destroyObjectProperties,g=a.each,v=a.erase,z=\\na.merge,u=a.pick;a.PlotLineOrBand=function(a,l){this.axis=a;l&&(this.options=l,this.id=l.id)};a.PlotLineOrBand.prototype={render:function(){var g=this,l=g.axis,b=l.horiz,e=g.options,t=e.label,n=g.label,f=e.to,c=e.from,h=e.value,w=p(c)&&p(f),D=p(h),r=g.svgElem,J=!r,q=[],F=e.color,x=u(e.zIndex,0),K=e.events,q={\\\"class\\\":\\\"highcharts-plot-\\\"+(w?\\\"band \\\":\\\"line \\\")+(e.className||\\\"\\\")},d={},H=l.chart.renderer,E=w?\\\"bands\\\":\\\"lines\\\";l.isLog&&(c=l.log2lin(c),f=l.log2lin(f),h=l.log2lin(h));D?(q={stroke:F,\\\"stroke-width\\\":e.width},\\ne.dashStyle&&(q.dashstyle=e.dashStyle)):w&&(F&&(q.fill=F),e.borderWidth&&(q.stroke=e.borderColor,q[\\\"stroke-width\\\"]=e.borderWidth));d.zIndex=x;E+=\\\"-\\\"+x;(F=l.plotLinesAndBandsGroups[E])||(l.plotLinesAndBandsGroups[E]=F=H.g(\\\"plot-\\\"+E).attr(d).add());J&&(g.svgElem=r=H.path().attr(q).add(F));if(D)q=l.getPlotLinePath(h,r.strokeWidth());else if(w)q=l.getPlotBandPath(c,f,e);else return;J&&q&&q.length?(r.attr({d:q}),K&&a.objectEach(K,function(a,d){r.on(d,function(a){K[d].apply(g,[a])})})):r&&(q?(r.show(),\\nr.animate({d:q})):(r.hide(),n&&(g.label=n=n.destroy())));t&&p(t.text)&&q&&q.length&&0this.max&&l>this.max;if(e&&\\nb)for(a&&(c=e.toString()===b.toString(),f=0),a=0;aw-c?w:w-c);else if(q)f[a]=Math.max(k,h+c+b>d?h:h+c);else return!1},q=function(a,d,b,c){var k;cd-n?k=!1:f[a]=cd-b/2?d-b-2:c-b/2;return k},F=function(a){var d=w;w=D;D=d;h=a},x=function(){!1!==g.apply(0,w)?!1!==q.apply(0,D)||h||(F(!0),x()):h?f.x=f.y=0:(F(!0),x())};(l.inverted||1x&&(c=!1);a=(l.series&&l.series.yAxis&&l.series.yAxis.pos)+(l.plotY||0);a-=n.plotTop;t.push({target:l.isHeader?n.plotHeight+\\nw:a,rank:l.isHeader?1:0,size:r.tt.getBBox().height+1,point:l,x:x,tt:F})}});this.cleanSplit();a.distribute(t,n.plotHeight+w);B(t,function(a){var b=a.point,f=b.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:c||b.isHeader?a.x:b.plotX+n.plotLeft+v(h.distance,16),y:a.pos+n.plotTop,anchorX:b.isHeader?b.plotX+n.plotLeft:b.plotX+f.xAxis.pos,anchorY:b.isHeader?a.pos+n.plotTop-15:b.plotY+f.yAxis.pos})})},updatePosition:function(a){var b=this.chart,e=this.getLabel(),e=(this.options.positioner||\\nthis.getPosition).call(this,e.width,e.height,a);this.move(Math.round(e.x),Math.round(e.y||0),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getDateFormat:function(a,b,e,t){var n=this.chart.time,f=n.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",b),c,h,w={millisecond:15,second:12,minute:9,hour:6,day:3},l=\\\"millisecond\\\";for(h in y){if(a===y.week&&+n.dateFormat(\\\"%w\\\",b)===e&&\\\"00:00:00.000\\\"===f.substr(6)){h=\\\"week\\\";break}if(y[h]>a){h=l;break}if(w[h]&&f.substr(w[h])!==\\\"01-01 00:00:00.000\\\".substr(w[h]))break;\\\"week\\\"!==h&&(l=h)}h&&\\n(c=t[h]);return c},getXDateFormat:function(a,b,e){b=b.dateTimeLabelFormats;var l=e&&e.closestPointRange;return(l?this.getDateFormat(l,a.x,e.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(a,b){b=b?\\\"footer\\\":\\\"header\\\";var e=a.series,l=e.tooltipOptions,n=l.xDateFormat,f=e.xAxis,c=f&&\\\"datetime\\\"===f.options.type&&p(a.key),h=l[b+\\\"Format\\\"];c&&!n&&(n=this.getXDateFormat(a,l,f));c&&n&&B(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){h=h.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+\\na+\\\":\\\"+n+\\\"}\\\")});return G(h,{point:a,series:e},this.chart.time)},bodyFormatter:function(a){return m(a,function(a){var b=a.series.tooltipOptions;return(b[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,b[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var B=a.addEvent,C=a.attr,G=a.charts,p=a.color,m=a.css,g=a.defined,v=a.each,z=a.extend,u=a.find,y=a.fireEvent,l=a.isNumber,b=a.isObject,e=a.offset,t=a.pick,n=a.splat,f=a.Tooltip;a.Pointer=function(a,\\nb){this.init(a,b)};a.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=t(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&(f=t(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=\\nf&&!b||a&&b;this.hasZoom=a||f},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=e(this.chart.container));return z(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};v(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,f,e){var c;v(a,function(a){var h=\\n!(a.noSharedTooltip&&f)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(e,h);if((h=b(a,!0))&&!(h=!b(c,!0)))var h=c.distX-a.distX,n=c.dist-a.dist,r=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex),h=0<(0!==h&&f?h:0!==n?n:0!==r?r:c.series.index>a.series.index?-1:1);h&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis,c=c.yAxis,h=\\nt(a.clientX,a.plotX),e=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+f.pos,chartY:a.plotY+c.pos};if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},getHoverData:function(c,f,e,n,r,l,q){var h,x=[],w=q&&q.isBoosting;n=!(!n||!c);q=f&&!f.stickyTracking?[f]:a.grep(e,function(a){return a.visible&&!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&a.stickyTracking});f=(h=n?c:this.findNearestKDPoint(q,r,l))&&h.series;h&&(r&&!f.noSharedTooltip?(q=a.grep(e,function(a){return a.visible&&\\n!(!r&&a.directTouch)&&t(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),v(q,function(a){var d=u(a.points,function(a){return a.x===h.x&&!a.isNull});b(d)&&(w&&(d=a.getPoint(d)),x.push(d))})):x.push(h));return{hoverPoint:h,hoverSeries:f,hoverPoints:x}},runPointActions:function(b,f){var c=this.chart,h=c.tooltip&&c.tooltip.options.enabled?c.tooltip:void 0,e=h?h.shared:!1,n=f||c.hoverPoint,q=n&&n.series||c.hoverSeries,q=this.getHoverData(n,q,c.series,!!f||q&&q.directTouch&&this.isDirectTouch,e,\\nb,{isBoosting:c.isBoosting}),l,n=q.hoverPoint;l=q.hoverPoints;f=(q=q.hoverSeries)&&q.tooltipOptions.followPointer;e=e&&q&&!q.noSharedTooltip;if(n&&(n!==c.hoverPoint||h&&h.isHidden)){v(c.hoverPoints||[],function(b){-1===a.inArray(b,l)&&b.setState()});v(l||[],function(a){a.setState(\\\"hover\\\")});if(c.hoverSeries!==q)q.onMouseOver();c.hoverPoint&&c.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!n.series)return;n.firePointEvent(\\\"mouseOver\\\");c.hoverPoints=l;c.hoverPoint=n;h&&h.refresh(e?l:n,b)}else f&&h&&!h.isHidden&&\\n(n=h.getAnchor([{}],b),h.updatePosition({plotX:n[0],plotY:n[1]}));this.unDocMouseMove||(this.unDocMouseMove=B(c.container.ownerDocument,\\\"mousemove\\\",function(b){var c=G[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));v(c.axes,function(c){var f=t(c.crosshair.snap,!0),d=f?a.find(l,function(a){return a.series[c.coll]===c}):void 0;d||!f?c.drawCrosshair(b,d):c.hideCrosshair()})},reset:function(a,b){var c=this.chart,f=c.hoverSeries,h=c.hoverPoint,e=c.hoverPoints,q=c.tooltip,l=q&&q.shared?e:h;\\na&&l&&v(n(l),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)q&&l&&(q.refresh(l),h&&(h.setState(h.state,!0),v(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();e&&v(e,function(a){a.setState()});if(f)f.onMouseOut();q&&q.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());v(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=c.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,f;v(c.series,function(h){f=\\na||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(f),h.markerGroup&&(h.markerGroup.attr(f),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(f))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,c=b.options.chart,f=a.chartX,e=a.chartY,n=this.zoomHor,q=this.zoomVert,l=b.plotLeft,\\nx=b.plotTop,t=b.plotWidth,d=b.plotHeight,H,E=this.selectionMarker,k=this.mouseDownX,A=this.mouseDownY,g=c.panKey&&a[c.panKey+\\\"Key\\\"];E&&E.touch||(fl+t&&(f=l+t),ex+d&&(e=x+d),this.hasDragged=Math.sqrt(Math.pow(k-f,2)+Math.pow(A-e,2)),10x.max&&(g=x.max-r,A=!0);A?(H-=.8*(H-e[f][0]),K||(k-=.8*(k-e[f][1])),m()):e[f]=[H,k];F||(b[f]=J-D,b[w]=r);b=F?1/q:q;l[w]=r;l[f]=g;p[F?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+c]=q;p[\\\"translate\\\"+c]=b*D+(H-b*d)},pinch:function(a){var v=\\nthis,u=v.chart,y=v.pinchDown,l=a.touches,b=l.length,e=v.lastValidTouch,t=v.hasZoom,n=v.selectionMarker,f={},c=1===b&&(v.inClass(a.target,\\\"highcharts-tracker\\\")&&u.runTrackerClick||v.runChartClick),h={};1b-6&&ng?this.maxItemWidth:a.itemWidth;h&&this.itemX-c+b>g&&(this.itemX=c,this.itemY+=n+this.lastLineHeight+l,this.lastLineHeight=0);this.lastItemY=n+this.itemY+l;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];h?this.itemX+=b:(this.itemY+=n+e+l,this.lastLineHeight=e);this.offsetWidth=q||Math.max((h?this.itemX-c-(a.checkbox?0:t):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];m(this.chart.series,function(b){var c=\\nb&&b.options;b&&y(c.showInLegend,p(c.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});g(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,f=this.options,e=this.getAlignment();e&&m([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(h,l){h.test(e)&&!p(a[l])&&(c[z[l]]=Math.max(c[z[l]],\\nc.legend[(l+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][l]*f[l%2?\\\"x\\\":\\\"y\\\"]+y(f.margin,12)+b[l]+(0===l&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},render:function(){var a=this.chart,f=a.renderer,c=this.group,e,l,t,r,g=this.box,q=this.options,F=this.padding;this.itemX=F;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;c||(this.group=c=f.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=f.g().attr({zIndex:1}).add(c),this.scrollGroup=f.g().add(this.contentGroup));\\nthis.renderTitle();e=this.getAllItems();b(e,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});q.reversed&&e.reverse();this.allItems=e;this.display=l=!!e.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;m(e,this.renderItem,this);m(e,this.layoutItem,this);t=(q.width||this.offsetWidth)+F;r=this.lastItemY+this.lastLineHeight+this.titleHeight;r=this.handleOverflow(r);r+=F;g||(this.box=g=f.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:q.borderRadius}).add(c),\\ng.isNew=!0);g.attr({stroke:q.borderColor,\\\"stroke-width\\\":q.borderWidth||0,fill:q.backgroundColor||\\\"none\\\"}).shadow(q.shadow);0c&&!1!==g.enabled?(this.clipHeight=t=Math.max(c-20-this.titleHeight-r,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,m(k,function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=H.length;if(!f||d-H[f-1]>t&&(E||d)!==H[f-1])H.push(E||d),f++;a.pageIx=f-1;E&&(k[b-1].pageIx=f-1);b===k.length-1&&d+c-H[f-1]>t&&(H.push(d),a.pageIx=f);d!==E&&(E=d)}),q||(q=b.clipRect=e.clipRect(0,r,9999,\\n0),b.contentGroup.clip(q)),A(t),d||(this.nav=d=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol(\\\"triangle\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(-1,x)}).add(d),this.pager=e.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(g.style).add(d),this.down=e.symbol(\\\"triangle-down\\\",0,0,K,K).on(\\\"click\\\",function(){b.scroll(1,x)}).add(d)),b.scroll(0),a=c):d&&(A(),this.nav=d.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=this.pages,f=\\nc.length;a=this.currentPage+a;var e=this.clipHeight,n=this.options.navigation,r=this.pager,t=this.padding;a>f&&(a=f);0f&&(e=typeof l[0],\\\"string\\\"===e?b.name=l[0]:\\\"number\\\"===e&&(b.x=l[0]),c++);h=t.value;)t=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor;return t},destroy:function(){var a=this.series.chart,b=a.hoverPoints,e;a.pointCount--;b&&(this.setState(),p(b,this),b.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(e in this)this[e]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],b,e=6;e--;)b=a[e],this[b]&&(this[b]=this[b].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,e=b.tooltipOptions,\\nl=u(e.valueDecimals,\\\"\\\"),n=e.valuePrefix||\\\"\\\",f=e.valueSuffix||\\\"\\\";C(b.pointArrayMap||[\\\"y\\\"],function(b){b=\\\"{point.\\\"+b;if(n||f)a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),n+b+\\\"}\\\"+f);a=a.replace(RegExp(b+\\\"}\\\",\\\"g\\\"),b+\\\":,.\\\"+l+\\\"f}\\\")});return g(a,{point:this,series:this.series},b.chart.time)},firePointEvent:function(a,b,e){var l=this,n=this.series.options;(n.point.events[a]||l.options&&l.options.events&&l.options.events[a])&&this.importEvents();\\\"click\\\"===a&&n.allowPointSelect&&(e=function(a){l.select&&l.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});m(this,a,b,e)},visible:!0}})(L);(function(a){var B=a.addEvent,C=a.animObject,G=a.arrayMax,p=a.arrayMin,m=a.correctFloat,g=a.defaultOptions,v=a.defaultPlotOptions,z=a.defined,u=a.each,y=a.erase,l=a.extend,b=a.fireEvent,e=a.grep,t=a.isArray,n=a.isNumber,f=a.isString,c=a.merge,h=a.objectEach,w=a.pick,D=a.removeEvent,r=a.splat,J=a.SVGElement,q=a.syncTimeout,F=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,c){var d=this,f,e=a.series,k;d.chart=a;d.options=c=d.setOptions(c);d.linkedSeries=[];d.bindAxes();l(d,{name:c.name,\\nstate:\\\"\\\",visible:!1!==c.visible,selected:!0===c.selected});f=c.events;h(f,function(a,b){B(d,b,a)});if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;d.getColor();d.getSymbol();u(d.parallelArrays,function(a){d[a+\\\"Data\\\"]=[]});d.setData(c.data,!1);d.isCartesian&&(a.hasCartesianSeries=!0);e.length&&(k=e[e.length-1]);d._i=w(k&&k._i,-1)+1;a.orderSeries(this.insert(e));b(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,d;if(n(b)){for(d=a.length;d--;)if(b>=\\nw(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return w(d,a.length-1)},bindAxes:function(){var b=this,c=b.options,d=b.chart,f;u(b.axisTypes||[],function(e){u(d[e],function(a){f=a.options;if(c[e]===f.index||void 0!==c[e]&&c[e]===f.id||void 0===c[e]&&0===f.index)b.insert(a.series),b[e]=a,a.isDirty=!0});b[e]||b.optionalAxis===e||a.error(18,!0)})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=n(b)?function(c){var k=\\\"y\\\"===c&&d.toYData?\\nd.toYData(a):a[c];d[c+\\\"Data\\\"][b]=k}:function(a){Array.prototype[b].apply(d[a+\\\"Data\\\"],Array.prototype.slice.call(c,2))};u(d.parallelArrays,f)},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time,b=w(b,a.pointStart,0);this.pointInterval=d=w(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),\\\"day\\\"===c?f.set(\\\"Date\\\",a,f.get(\\\"Date\\\",a)+d):\\\"month\\\"===c?f.set(\\\"Month\\\",a,f.get(\\\"Month\\\",a)+d):\\\"year\\\"===c&&f.set(\\\"FullYear\\\",a,f.get(\\\"FullYear\\\",a)+d),d=a.getTime()-\\nb);this.xIncrement=b+d;return b},setOptions:function(a){var f=this.chart,d=f.options,e=d.plotOptions,h=(f.userOptions||{}).plotOptions||{},k=e[this.type];this.userOptions=a;f=c(k,e.series,a);this.tooltipOptions=c(g.tooltip,g.plotOptions.series&&g.plotOptions.series.tooltip,g.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=w(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;a=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||a.push({value:f[this.zoneAxis+\\\"Threshold\\\"]||f.threshold||0,className:\\\"highcharts-negative\\\",color:f.negativeColor,fillColor:f.negativeFillColor});a.length&&z(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});b(this,\\\"afterSetOptions\\\",{options:f});return f},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,d){var c,f=this.chart,k=this.userOptions,e=a+\\\"Index\\\",h=a+\\\"Counter\\\",x=d?d.length:w(f.options.chart[a+\\\"Count\\\"],f[a+\\\"Count\\\"]);b||(c=w(k[e],k[\\\"_\\\"+e]),z(c)||(f.series.length||(f[h]=0),k[\\\"_\\\"+e]=c=f[h]%x,f[h]+=1),d&&(b=d[c]));void 0!==c&&(this[e]=c);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||v[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,d=this.points,f=[],e,k,h,x=this.requireSorting;u(b,function(b){var k;k=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;n(k)&&(k=a.inArray(k,this.xData,h),-1===k?f.push(b):b!==c.data[k]?(d[k].update(b,!1,null,!1),d[k].touched=!0,x&&(h=k)):d[k]&&(d[k].touched=!0),e=!0)},this);if(e)for(b=d.length;b--;)k=d[b],k.touched||k.remove(!1),\\nk.touched=!1;else if(b.length===d.length)u(b,function(a,b){d[b].update&&a!==c.data[b]&&d[b].update(a,!1,null,!1)});else return!1;u(f,function(a){this.addPoint(a,!1)},this);return!0},setData:function(b,c,d,e){var h=this,k=h.points,x=k&&k.length||0,q,l=h.options,r=h.chart,g=null,H=h.xAxis,F=l.turboThreshold,m=this.xData,D=this.yData,K=(q=h.pointArrayMap)&&q.length,J;b=b||[];q=b.length;c=w(c,!0);!1!==e&&q&&x&&!h.cropped&&!h.hasGroupedData&&h.visible&&(J=this.updateData(b));if(!J){h.xIncrement=null;h.colorCounter=\\n0;u(this.parallelArrays,function(a){h[a+\\\"Data\\\"].length=0});if(F&&q>F){for(d=0;null===g&&dq||this.forceCrop))if(c[f-1]F)c=[],d=[];else if(c[0]F)e=this.cropData(this.xData,this.yData,w,F),c=e.xData,d=e.yData,e=e.start,k=!0;for(q=c.length||1;--q;)f=g?l(c[q])-l(c[q-1]):c[q]-c[q-1],0f&&t&&(a.error(15),t=!1);this.cropped=k;this.cropStart=e;this.processedXData=c;this.processedYData=d;this.closestPointRange=h},cropData:function(a,b,d,c,f){var k=a.length,e=0,h=k,x;f=\\nw(f,this.cropShoulder,1);for(x=0;x=d){e=Math.max(0,x-f);break}for(d=x;dc){h=d+f;break}return{xData:a.slice(e,h),yData:b.slice(e,h),start:e,end:h}},generatePoints:function(){var a=this.options,b=a.data,d=this.data,c,f=this.processedXData,k=this.processedYData,e=this.pointClass,h=f.length,q=this.cropStart||0,l,n=this.hasGroupedData,a=a.keys,g,t=[],w;d||n||(d=[],d.length=b.length,d=this.data=d);a&&n&&(this.options.keys=!1);for(w=0;w=e&&(d[g-l]||x)<=h,q&&x)if(q=r.length)for(;q--;)\\\"number\\\"===typeof r[q]&&(f[k++]=r[q]);else f[k++]=r;this.dataMin=p(f);this.dataMax=G(f)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,d=this.xAxis,f=d.categories,e=this.yAxis,k=this.points,h=k.length,q=!!this.modifyValue,l=a.pointPlacement,\\nr=\\\"between\\\"===l||n(l),g=a.threshold,t=a.startFromThreshold?g:0,F,D,J,u,v=Number.MAX_VALUE;\\\"between\\\"===l&&(l=.5);n(l)&&(l*=w(a.pointRange||d.pointRange));for(a=0;a=C&&(p.isNull=!0);p.plotX=F=m(Math.min(Math.max(-1E5,d.translate(y,0,0,0,1,l,\\\"flags\\\"===this.type)),1E5));c&&this.visible&&!p.isNull&&B&&B[y]&&(u=this.getStackIndicator(u,y,this.index),G=B[y],C=G.points[u.key],\\nD=C[0],C=C[1],D===t&&u.key===B[y].base&&(D=w(n(g)&&g,e.min)),e.positiveValuesOnly&&0>=D&&(D=null),p.total=p.stackTotal=G.total,p.percentage=G.total&&p.y/G.total*100,p.stackY=C,G.setOffset(this.pointXOffset||0,this.barW||0));p.yBottom=z(D)?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):null;q&&(C=this.modifyValue(C,p));p.plotY=D=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,e.translate(C,0,1,0,1)),1E5):void 0;p.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=F&&F<=d.len;p.clientX=r?m(d.translate(y,\\n0,0,0,1,l)):F;p.negative=p.y<(g||0);p.category=f&&void 0!==f[p.x]?f[p.x]:p.x;p.isNull||(void 0!==J&&(v=Math.min(v,Math.abs(F-J))),J=F);p.zone=this.zones.length&&p.getZone()}this.closestPointRangePx=v;b(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var d=this.chart;return e(a||this.points||[],function(a){return b&&!d.isInsidePlot(a.plotX,a.plotY,d.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,k=this.clipBox,e=k||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,e.height,d.xAxis,d.yAxis].join(),q=b[h],l=b[h+\\\"m\\\"];q||(a&&(e.width=0,f&&(e.x=b.plotSizeX),b[h+\\\"m\\\"]=l=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=q=c.clipRect(e),q.count={length:0});a&&!q.count[this.index]&&(q.count[this.index]=!0,q.count.length+=1);!1!==d.clip&&(this.group.clip(a||k?q:b.clipRect),this.markerGroup.clip(l),this.sharedClipKey=h);a||(q.count[this.index]&&(delete q.count[this.index],--q.count.length),\\n0===q.count.length&&h&&b[h]&&(k||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,d=C(this.options.animation),c;a?this.setClip(d):(c=this.sharedClipKey,(a=b[c])&&a.animate({width:b.plotSizeX,x:0},d),b[c+\\\"m\\\"]&&b[c+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},d),this.animate=null)},afterAnimate:function(){this.setClip();b(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c,f,k,e=this.options.marker,\\nh,q,l,r=this[this.specialGroup]||this.markerGroup,g,n=w(e.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=e.enabledThreshold*e.radius);if(!1!==e.enabled||this._hasPointMarkers)for(d=0;df&&b.shadow));e&&(e.startX=d.xMap,e.isArea=d.isArea)})},getZonesGraphs:function(a){u(this.zones,function(b,d){a.push([\\\"zone-graph-\\\"+d,\\\"highcharts-graph highcharts-zone-graph-\\\"+d+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,d=b.renderer,c=this.zones,f,k,e=this.clips||[],h,q=this.graph,l=this.area,r=Math.max(b.chartWidth,b.chartHeight),g=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],n,t,F=b.inverted,D,m,J,p,v=!1;c.length&&(q||l)&&g&&void 0!==g.min&&(t=g.reversed,D=g.horiz,q&&!this.showLine&&q.hide(),l&&l.hide(),n=g.getExtremes(),u(c,function(c,x){f=t?D?b.plotWidth:0:D?0:g.toPixels(n.min);f=Math.min(Math.max(w(k,f),0),r);k=Math.min(Math.max(Math.round(g.toPixels(w(c.value,n.max),!0)),0),r);v&&(f=k=g.toPixels(n.max));\\nm=Math.abs(f-k);J=Math.min(f,k);p=Math.max(f,k);g.isXAxis?(h={x:F?p:J,y:0,width:m,height:r},D||(h.x=b.plotHeight-h.x)):(h={x:0,y:F?p:J,width:r,height:m},D&&(h.y=b.plotWidth-h.y));F&&d.isVML&&(h=g.isXAxis?{x:0,y:t?J:p,height:h.width,width:b.chartWidth}:{x:h.y-b.plotLeft-b.spacingBox.x,y:0,width:h.height,height:b.chartHeight});e[x]?e[x].animate(h):(e[x]=d.clipRect(h),q&&a[\\\"zone-graph-\\\"+x].clip(e[x]),l&&a[\\\"zone-area-\\\"+x].clip(e[x]));v=c.value>n.max;a.resetZones&&0===k&&(k=void 0)}),this.clips=e)},invertGroups:function(a){function b(){u([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart,f;d.xAxis&&(f=B(c,\\\"resize\\\",b),B(d,\\\"destroy\\\",f),b(a),d.invertGroups=b)},plotGroup:function(a,b,d,c,f){var k=this[a],e=!k;e&&(this[a]=k=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));k.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(z(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(k.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);k.attr({visibility:d})[e?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return k},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,c=a.chart,d,f=a.options,e=!!a.animate&&c.renderer.isSVG&&C(f.animation).duration,k=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",h=f.zIndex,l=a.hasRendered,r=c.seriesGroup,g=c.inverted;d=a.plotGroup(\\\"group\\\",\\\"series\\\",k,h,r);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",k,h,r);e&&a.animate(!0);d.inverted=a.isCartesian?g:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(g);!1===f.clip||a.sharedClipKey||l||d.clip(c.clipRect);e&&a.animate();l||(a.animationTimeout=q(function(){a.afterAnimate()},\\ne));a.isDirty=!1;a.hasRendered=!0;b(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:w(c&&c.left,a.plotLeft),translateY:w(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?\\nd.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b)},buildKDTree:function(){function a(d,c,f){var k,e;if(e=d&&d.length)return k=b.kdAxisArray[c%f],d.sort(function(a,b){return a[k]-b[k]}),e=Math.floor(e/2),{point:d[e],left:a(d.slice(0,e),c+1,f),right:a(d.slice(e+1),c+1,f)}}this.buildingKdTree=!0;var b=this,d=-1r?\\\"left\\\":\\\"right\\\";n=0>r?\\\"right\\\":\\\"left\\\";b[g]&&(g=d(a,b[g],h+1,q),t=g[e]t;)x--;this.updateParallelArrays(g,\\n\\\"splice\\\",x,0,0);this.updateParallelArrays(g,x);k&&g.name&&(k[t]=g.name);l.splice(x,0,a);r&&(this.data.splice(x,0,null),this.processData());\\\"point\\\"===d.legendType&&this.generatePoints();f&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(g,\\\"shift\\\"),l.shift()));this.isDirtyData=this.isDirty=!0;b&&q.redraw(e)},removePoint:function(a,b,f){var e=this,d=e.data,h=d[a],q=e.points,k=e.chart,l=function(){q&&q.length===d.length&&q.splice(a,1);d.splice(a,1);e.options.data.splice(a,1);e.updateParallelArrays(h||\\n{series:e},\\\"splice\\\",a,1);h&&h.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&k.redraw()};r(f,k);b=c(b,!0);h?h.firePointEvent(\\\"remove\\\",null,l):l()},remove:function(a,b,f){function e(){d.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();c(a,!0)&&h.redraw(b)}var d=this,h=d.chart;!1!==f?y(d,\\\"remove\\\",null,e):e()},update:function(b,f){var e=this,h=e.chart,d=e.userOptions,q=e.oldType||e.type,g=b.type||d.type||h.options.chart.type,k=D[q].prototype,r,t=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],w=[\\\"navigatorSeries\\\",\\n\\\"baseSeries\\\"],m=e.finishedAnimating&&{animation:!1},F=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],J=a.keys(b),p=0a&&u>g?(u=Math.max(a,g),l=2*g-u):up&&l>g?(l=Math.max(p,g),u=2*g-l):l=Math.abs(b)&&.5a.closestPointRange*a.xAxis.transA,g=a.borderWidth=v(e.borderWidth,g?0:1),n=a.yAxis,f=e.threshold,c=a.translatedThreshold=n.getThreshold(f),h=v(e.minPointLength,5),w=a.getColumnMetrics(),m=w.width,r=a.barW=Math.max(m,1+2*g),J=a.pointXOffset=w.offset;b.inverted&&(c-=.5);e.pointPadding&&\\n(r=Math.ceil(r));z.prototype.translate.apply(a);G(a.points,function(e){var g=v(e.yBottom,c),q=999+Math.abs(g),q=Math.min(Math.max(-q,e.plotY),n.len+q),l=e.plotX+J,d=r,t=Math.min(q,g),w,k=Math.max(q,g)-t;h&&Math.abs(k)h?g-h:c-(w?h:0));e.barX=l;e.pointWidth=m;e.tooltipPos=b.inverted?[n.len+n.pos-b.plotLeft-q,a.xAxis.len-l-d/2,k]:[l+d/2,q+n.pos-b.plotTop,k];e.shapeType=\\\"rect\\\";e.shapeArgs=\\na.crispCol.apply(a,e.isNull?[l,c,d,0]:[l,t,d,k])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,b){var e=this.options,l,n=this.pointAttrToOptions||{};l=n.stroke||\\\"borderColor\\\";var f=n[\\\"stroke-width\\\"]||\\\"borderWidth\\\",c=a&&a.color||this.color,h=a&&a[l]||e[l]||this.color||c,w=a&&a[f]||e[f]||this[f]||0,n=e.dashStyle;a&&this.zones.length&&(c=a.getZone(),c=a.options.color||\\nc&&c.color||this.color);b&&(a=g(e.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,c=a.color||void 0!==b&&C(c).brighten(a.brightness).get()||c,h=a[l]||h,w=a[f]||w,n=a.dashStyle||n);l={fill:c,stroke:h,\\\"stroke-width\\\":w};n&&(l.dashstyle=n);return l},drawPoints:function(){var a=this,b=this.chart,e=a.options,t=b.renderer,n=e.animationLimit||250,f;G(a.points,function(c){var h=c.graphic,l=h&&b.pointCountl;++l)b=u[l],a=2>l||2===l&&/%$/.test(b),u[l]=p(b,[z,g,y,u[2]][l])+(a?v:0);u[3]>u[2]&&(u[3]=u[2]);return u},getStartAndEndRadians:function(a,g){a=C(a)?a:0;g=C(g)&&g>a&&360>g-a?g:a+360;return{start:B*(a+-90),end:B*(g+-90)}}}})(L);(function(a){var B=a.addEvent,C=a.CenteredSeriesMixin,G=a.defined,p=a.each,m=a.extend,g=C.getStartAndEndRadians,v=a.inArray,z=a.noop,u=a.pick,y=a.Point,\\nl=a.Series,b=a.seriesType,e=a.setAnimation;b(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:[\\\"group\\\",\\n\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var b=this,f=b.points,c=b.startAngleRad;a||(p(f,function(a){var f=a.graphic,e=a.shapeArgs;f&&(f.attr({r:a.startR||b.center[3]/2,start:c,end:c}),f.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},updateTotals:function(){var a,b=0,f=this.points,c=f.length,e,g=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI);\\nE.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)};m=Math.cos(r)*a[2]/2;x=Math.sin(r)*a[2]/2;E.tooltipPos=[a[0]+.7*m,a[1]+.7*x];E.half=r<-Math.PI/2||r>Math.PI/2?1:0;E.angle=r;l=Math.min(e,E.labelDistance/5);E.labelPos=[a[0]+m+Math.cos(r)*E.labelDistance,a[1]+x+Math.sin(r)*E.labelDistance,a[0]+m+Math.cos(r)*l,a[1]+x+Math.sin(r)*l,a[0]+m,a[1]+x,0>E.labelDistance?\\\"center\\\":E.half?\\\"right\\\":\\\"left\\\",r]}},drawGraph:null,drawPoints:function(){var a=this,b=a.chart.renderer,\\nf,c,e,g,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=b.g(\\\"shadow\\\").add(a.group));p(a.points,function(h){c=h.graphic;if(h.isNull)c&&(h.graphic=c.destroy());else{g=h.shapeArgs;f=h.getTranslate();var r=h.shadowGroup;l&&!r&&(r=h.shadowGroup=b.g(\\\"shadow\\\").add(a.shadowGroup));r&&r.attr(f);e=a.pointAttribs(h,h.selected&&\\\"select\\\");c?c.setRadialReference(a.center).attr(e).animate(m(g,f)):(h.graphic=c=b[h.shapeType](g).setRadialReference(a.center).attr(f).add(a.group),h.visible||c.attr({visibility:\\\"hidden\\\"}),\\nc.attr(e).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(l,r));c.addClass(h.getClassName())}})},searchPoint:z,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:C.getCenter,getSymbol:z},{init:function(){y.prototype.init.apply(this,arguments);var a=this,b;a.name=u(a.name,\\\"Slice\\\");b=function(b){a.slice(\\\"select\\\"===b.type)};B(a,\\\"select\\\",b);B(a,\\\"unselect\\\",b);return a},isValid:function(){return a.isNumber(this.y,\\n!0)&&0<=this.y},setVisible:function(a,b){var f=this,c=f.series,e=c.chart,g=c.options.ignoreHiddenPoint;b=u(b,g);a!==f.visible&&(f.visible=f.options.visible=a=void 0===a?!f.visible:a,c.options.data[v(f,c.data)]=f.options,p([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(b){if(f[b])f[b][a?\\\"show\\\":\\\"hide\\\"](!0)}),f.legendItem&&e.legend.colorizeItem(f,a),a||\\\"hover\\\"!==f.state||f.setState(\\\"\\\"),g&&(c.isDirty=!0),b&&e.redraw())},slice:function(a,b,f){var c=this.series;e(f,c.chart);u(b,!0);this.sliced=\\nthis.options.sliced=G(a)?a:!this.sliced;c.options.data[v(this,c.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r-1,start:b.start,end:b.end})}})})(L);(function(a){var B=\\na.addEvent,C=a.arrayMax,G=a.defined,p=a.each,m=a.extend,g=a.format,v=a.map,z=a.merge,u=a.noop,y=a.pick,l=a.relativeLength,b=a.Series,e=a.seriesTypes,t=a.some,n=a.stableSort;a.distribute=function(b,c,e){function f(a,b){return a.target-b.target}var h,g=!0,l=b,q=[],m;m=0;var x=l.reducedLen||c;for(h=b.length;h--;)m+=b[h].size;if(m>x){n(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(m=h=0;m<=x;)m+=b[h].size,h++;q=b.splice(h-1,b.length)}n(b,f);for(b=v(b,function(a){return{size:a.size,targets:[a.target],\\nalign:y(a.align,.5)}});g;){for(h=b.length;h--;)g=b[h],m=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,m-g.size*g.align),c-g.size);h=b.length;for(g=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),g=!0)}l.push.apply(l,q);h=0;t(b,function(b){var d=0;if(t(b.targets,function(){l[h].pos=b.pos+d;if(Math.abs(l[h].pos-\\nl[h].target)>e)return p(l.slice(0,h+1),function(a){delete a.pos}),l.reducedLen=(l.reducedLen||c)-.1*c,l.reducedLen>.1*c&&a.distribute(l,c,e),!0;d+=l[h].size;h++}))return!0});n(l,f)};b.prototype.drawDataLabels=function(){function b(a,b){var d=b.filter;return d?(b=d.operator,a=a[d.property],d=d.value,\\\"\\\\x3e\\\"===b&&a>d||\\\"\\\\x3c\\\"===b&&a=d||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=d||\\\"\\\\x3d\\\\x3d\\\"===b&&a==d||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===d?!0:!1):!0}var c=this,e=c.chart,l=c.options,n=l.dataLabels,r=c.points,m,q,t=\\nc.hasRendered||0,x,u,d=y(n.defer,!!l.animation),H=e.renderer;if(n.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(n),u=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",d&&!t?\\\"hidden\\\":\\\"visible\\\",n.zIndex||6),d&&(u.attr({opacity:+t}),t||B(c,\\\"afterAnimate\\\",function(){c.visible&&u.show(!0);u[l.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),q=n,p(r,function(d){var f,h=d.dataLabel,r,w,t=d.connector,F=!h,E;m=d.dlOptions||d.options&&d.options.dataLabels;(f=y(m&&m.enabled,q.enabled)&&\\n!d.isNull)&&(f=!0===b(d,m||n));f&&(n=z(q,m),r=d.getLabelConfig(),E=n[d.formatPrefix+\\\"Format\\\"]||n.format,x=G(E)?g(E,r,e.time):(n[d.formatPrefix+\\\"Formatter\\\"]||n.formatter).call(r,n),E=n.style,r=n.rotation,E.color=y(n.color,E.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===E.color&&(d.contrastColor=H.getContrast(d.color||c.color),E.color=n.inside||0>y(d.labelDistance,n.distance)||l.stacking?d.contrastColor:\\\"#000000\\\"),l.cursor&&(E.cursor=l.cursor),w={fill:n.backgroundColor,stroke:n.borderColor,\\\"stroke-width\\\":n.borderWidth,\\nr:n.borderRadius||0,rotation:r,padding:n.padding,zIndex:1},a.objectEach(w,function(a,b){void 0===a&&delete w[b]}));!h||f&&G(x)?f&&G(x)&&(h?w.text=x:(h=d.dataLabel=r?H.text(x,0,-9999).addClass(\\\"highcharts-data-label\\\"):H.label(x,0,-9999,n.shape,null,null,n.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+d.colorIndex+\\\" \\\"+(n.className||\\\"\\\")+(n.useHTML?\\\"highcharts-tracker\\\":\\\"\\\"))),h.attr(w),h.css(E).shadow(n.shadow),h.added||h.add(u),c.alignDataLabel(d,h,n,null,F)):(d.dataLabel=h=h.destroy(),\\nt&&(d.connector=t.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};b.prototype.alignDataLabel=function(a,b,e,g,l){var c=this.chart,f=c.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),n=y(a.plotY,-9999),x=b.getBBox(),w,d=e.rotation,t=e.align,E=this.visible&&(a.series.forceDL||c.isInsidePlot(h,Math.round(n),f)||g&&c.isInsidePlot(h,f?g.x+1:g.y+g.height-1,f)),k=\\\"justify\\\"===y(e.overflow,\\\"justify\\\");if(E&&(w=e.style.fontSize,w=c.renderer.fontMetrics(w,b).b,g=m({x:f?this.yAxis.len-n:h,y:Math.round(f?\\nthis.xAxis.len-h:n),width:0,height:0},g),m(e,{width:x.width,height:x.height}),d?(k=!1,h=c.renderer.rotCorr(w,d),h={x:g.x+e.x+g.width/2+h.x,y:g.y+e.y+{top:0,middle:.5,bottom:1}[e.verticalAlign]*g.height},b[l?\\\"attr\\\":\\\"animate\\\"](h).attr({align:t}),n=(d+720)%360,n=180n,\\\"left\\\"===t?h.y-=n?x.height:0:\\\"center\\\"===t?(h.x-=x.width/2,h.y-=x.height/2):\\\"right\\\"===t&&(h.x-=x.width,h.y-=n?0:x.height),b.placed=!0,b.alignAttr=h):(b.align(e,null,g),h=b.alignAttr),k?a.isLabelJustified=this.justifyDataLabel(b,e,\\nh,x,g,l):y(e.crop,!0)&&(E=c.isInsidePlot(h.x,h.y)&&c.isInsidePlot(h.x+x.width,h.y+x.height)),e.shape&&!d))b[l?\\\"attr\\\":\\\"animate\\\"]({anchorX:f?c.plotWidth-a.plotY:a.plotX,anchorY:f?c.plotHeight-a.plotX:a.plotY});E||(b.attr({y:-9999}),b.placed=!1)};b.prototype.justifyDataLabel=function(a,b,e,g,l,r){var c=this.chart,f=b.align,h=b.verticalAlign,n,m,d=a.box?0:a.padding||0;n=e.x+d;0>n&&(\\\"right\\\"===f?b.align=\\\"left\\\":b.x=-n,m=!0);n=e.x+g.width-d;n>c.plotWidth&&(\\\"left\\\"===f?b.align=\\\"right\\\":b.x=c.plotWidth-n,m=!0);\\nn=e.y+d;0>n&&(\\\"bottom\\\"===h?b.verticalAlign=\\\"top\\\":b.y=-n,m=!0);n=e.y+g.height-d;n>c.plotHeight&&(\\\"top\\\"===h?b.verticalAlign=\\\"bottom\\\":b.y=c.plotHeight-n,m=!0);m&&(a.placed=!r,a.align(b,null,l));return m};e.pie&&(e.pie.prototype.drawDataLabels=function(){var f=this,c=f.data,e,g=f.chart,l=f.options.dataLabels,r=y(l.connectorPadding,10),n=y(l.connectorWidth,1),q=g.plotWidth,m=g.plotHeight,x=Math.round(g.chartWidth/3),t,d=f.center,H=d[2]/2,E=d[1],k,A,u,v,z=[[],[]],B,N,M,S,O=[0,0,0,0];f.visible&&(l.enabled||\\nf._hasPointLabels)&&(p(c,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),b.prototype.drawDataLabels.apply(f),p(c,function(a){a.dataLabel&&a.visible&&(z[a.half].push(a),a.dataLabel._pos=null,!G(l.style.width)&&!G(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:.7*x}),a.dataLabel.shortened=!0))}),\\np(z,function(b,c){var h,n,x=b.length,t=[],w;if(x)for(f.sortByAngle(b,c-.5),0e.bottom-2?h:N,c,e),k._attr={visibility:M,align:u[6]},k._pos={x:B+l.x+({left:r,right:-r}[u[6]]||0),y:N+l.y-10},u.x=B,u.y=N,y(l.crop,!0)&&(A=k.getBBox().width,h=null,B-Aq-r&&0===c&&(h=Math.round(B+A-q+r),O[1]=\\nMath.max(h,O[1])),0>N-v/2?O[0]=Math.max(Math.round(-N+v/2),O[0]):N+v/2>m&&(O[2]=Math.max(Math.round(N+v/2-m),O[2])),k.sideOverflow=h)}),0===C(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),n&&p(this.points,function(a){var b;t=a.connector;if((k=a.dataLabel)&&k._pos&&a.visible&&0y(this.translatedThreshold,\\nh.yAxis.len)),m=y(e.inside,!!this.options.stacking);q&&(g=z(q),0>g.y&&(g.height+=g.y,g.y=0),q=g.y+g.height-h.yAxis.len,0a+e||g+qb+f||l+nthis.pointCount))},pan:function(a,b){var c=this,e=c.hoverPoints,f;e&&v(e,function(a){a.setState()});v(\\\"xy\\\"===b?[1,0]:[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,e=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",h=c[d],k=(b.pointRange||0)/2,g=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,l=b.getExtremes(),\\nn=b.toValue(h-e,!0)+k*g,g=b.toValue(h+b.len-e,!0)-k*g,q=g=g(p.minWidth,0)&&this.chartHeight>=g(p.minHeight,0)}).call(this)&&m.push(a._id)};B.prototype.currentOptions=function(g){function u(g,b,e,t){var l;a.objectEach(g,function(a,c){if(!t&&-1c.length||void 0===g)return a.call(this,e,g,l,f);x=c.length;for(n=0;nl;c[n]5*h||u){if(c[n]>H){for(t=a.call(this,e,c[b],c[n],f);t.length&&t[0]<=H;)t.shift();t.length&&(H=t[t.length-1]);d=d.concat(t)}b=n+1}if(u)break}a=t.info;if(w&&a.unitRange<=y.hour){n=d.length-1;for(b=1;bl?k-1:k;for(A=void 0;w--;)b=n[w],l=Math.abs(A-b),A&&l<.8*E&&(null===p||l<.8*p)?(q[d[w]]&&!q[d[w+1]]?(l=w+1,A=b):l=w,d.splice(l,1)):A=b}return d});v(C.prototype,{beforeSetTickPositions:function(){var a,e=[],l=!1,n,f=this.getExtremes(),c=f.min,h=f.max,w,p=this.isXAxis&&!!this.options.breaks,f=this.options.ordinal,r=Number.MAX_VALUE,\\nv=this.chart.options.chart.ignoreHiddenSeries;n=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&m(this.userMin)&&(this.min+=this.options.overscroll));if(f||p){g(this.series,function(b,c){if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(e=e.concat(b.processedXData),a=e.length,e.sort(function(a,b){return a-\\nb}),r=Math.min(r,u(b.closestPointRange,r)),a))for(c=a-1;c--;)e[c]===e[c+1]&&e.splice(c,1)});a=e.length;if(2n||h-e[e.length-1]>n)&&(l=!0)}else this.options.overscroll&&(2===a?r=e[1]-e[0]:1===a?(r=this.options.overscroll,e=[e[0],e[0]+r]):r=this.overscrollPointsRange);l?(this.options.overscroll&&(this.overscrollPointsRange=r,e=e.concat(this.getOverscrollPositions())),this.ordinalPositions=e,n=this.ordinal2lin(Math.max(c,\\ne[0]),!0),w=Math.max(this.ordinal2lin(Math.min(h,e[e.length-1]),!0),1),this.ordinalSlope=h=(h-c)/(w-n),this.ordinalOffset=c-n*h):(this.overscrollPointsRange=u(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=f&&l;this.groupIntervalFactor=null},val2lin:function(a,e){var b=this.ordinalPositions;if(b){var g=b.length,f,c;for(f=g;f--;)if(b[f]===a){c=f;break}for(f=g-1;f--;)if(a>b[f]||0===f){a=(a-b[f])/(b[f+1]-b[f]);c=f+\\na;break}e=e?c:this.ordinalSlope*(c||0)+this.ordinalOffset}else e=a;return e},lin2val:function(a,e){var b=this.ordinalPositions;if(b){var g=this.ordinalSlope,f=this.ordinalOffset,c=b.length-1,h;if(e)0>a?a=b[0]:a>c?a=b[c]:(c=Math.floor(a),h=a-c);else for(;c--;)if(e=g*c+f,a>=e){g=g*(c+1)+f;h=(a-e)/(g-e);break}return void 0!==h&&void 0!==b[c]?b[c]+(h?h*(b[c+1]-b[c]):0):a}return a},getExtendedPositions:function(){var a=this,e=a.chart,l=a.series[0].currentDataGrouping,n=a.ordinalIndex,f=l?l.count+l.unitName:\\n\\\"raw\\\",c=a.options.overscroll,h=a.getExtremes(),m,p;n||(n=a.ordinalIndex={});n[f]||(m={series:[],chart:e,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+c}},options:{ordinal:!0},val2lin:C.prototype.val2lin,ordinal2lin:C.prototype.ordinal2lin},g(a.series,function(b){p={xAxis:m,xData:b.xData.slice(),chart:e,destroyGroupedData:z};p.xData=p.xData.concat(a.getOverscrollPositions());p.options={dataGrouping:l?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[l.unitName,[l.count]]]}:{enabled:!1}};\\nb.processData.apply(p);m.series.push(p)}),a.beforeSetTickPositions.apply(m),n[f]=m.ordinalPositions);return n[f]},getOverscrollPositions:function(){var b=this.options.overscroll,e=this.overscrollPointsRange,g=[],l=this.dataMax;if(a.defined(e))for(g.push(l);l<=this.dataMax+b;)l+=e,g.push(l);return g},getGroupIntervalFactor:function(a,e,g){var b;g=g.processedXData;var f=g.length,c=[];b=this.groupIntervalFactor;if(!b){for(b=0;bh?(q=x,d=b.ordinalPositions?b:x):(q=b.ordinalPositions?b:x,d=x),x=d.ordinalPositions,u>x[x.length-1]&&x.push(u),this.fixedRange=v-r,h=b.toFixedRange(null,null,F.apply(q,[y.apply(q,[r,!0])+h,!0]),F.apply(d,[y.apply(d,[v,!0])+h,!0])),h.min>=Math.min(m.dataMin,r)&&\\nh.max<=Math.max(u,v)+l&&b.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=f,p(this.container,{cursor:\\\"move\\\"})):c=!0}else c=!0;c&&(l&&(b.max=b.dataMax+l),a.apply(this,Array.prototype.slice.call(arguments,1)))})})(L);(function(a){function B(){return Array.prototype.slice.call(arguments,1)}function C(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,p(this.pointArrayMap,[\\\"y\\\"]))}var G=a.addEvent,p=a.pick,m=a.wrap,g=a.each,v=a.extend,z=a.isArray,u=a.fireEvent,\\ny=a.Axis,l=a.Series;v(y.prototype,{isInBreak:function(a,e){var b=a.repeat||Infinity,g=a.from,f=a.to-a.from;e=e>=g?(e-g)%b:b-(g-e)%b;return a.inclusive?e<=f:e=b)break;else if(a.isInBreak(f,b)){e-=b-f.from;break}return e},a.lin2val=function(b){var e,f;for(f=0;f=b);f++)e.tom;)q-=l;for(;qe.to||c>e.from&&me.from&&me.from&&m>e.to&&mb&&(b=e);l--;)g[l+1].x-g[l].x>b&&(e=(g[l].x+g[l+1].x)/2,g.splice(l+1,0,{isNull:!0,x:e}),this.options.stacking&&(e=f.stacks[this.stackKey][e]=new a.StackItem(f,f.options.stackLabels,!1,e,this.stack),e.total=0));return this.getGraphPath(g)};m(a.seriesTypes.column.prototype,\\\"drawPoints\\\",C);m(a.Series.prototype,\\n\\\"drawPoints\\\",C)})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.defaultPlotOptions,g=a.defined,v=a.each,z=a.extend,u=a.format,y=a.isNumber,l=a.merge,b=a.pick,e=a.Point,t=a.Series,n=a.Tooltip,f=a.wrap,c=t.prototype,h=c.processData,w=c.generatePoints,D={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\n\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},r={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",\\ngroupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},J=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],q=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=q.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=\\n[];v(arguments,function(b){a.push(q.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?C(a):a.hasNulls?null:void 0},low:function(a){return a.length?G(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=q.open(a);b=q.high(b);c=q.low(c);d=q.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=q.low(a);b=q.high(b);if(y(a)||\\ny(b))return[a,b];if(null===a&&null===b)return null}};c.groupData=function(a,b,c,d){var e=this.data,f=this.options.data,k=[],h=[],g=[],l=a.length,m,n,p=!!b,w=[];d=\\\"function\\\"===typeof d?d:q[d]||r[this.type]&&q[r[this.type].approximation]||q[D.approximation];var x=this.pointArrayMap,t=x&&x.length,u=0;n=0;var F,z;t?v(x,function(){w.push([])}):w.push([]);F=t||1;for(z=0;z<=l&&!(a[z]>=c[0]);z++);for(z;z<=l;z++){for(;void 0!==c[u+1]&&a[z]>=c[u+1]||z===l;){m=c[u];this.dataGroupInfo={start:n,length:w[0].length};\\nn=d.apply(this,w);void 0!==n&&(k.push(m),h.push(n),g.push(this.dataGroupInfo));n=z;for(m=0;mthis.chart.plotSizeX/d||b&&f.forced)&&(e=!0);return e?d:0};p.prototype.setDataGrouping=function(a,c){var e;c=b(c,!0);a||(a={forced:!1,\\nunits:null});if(this instanceof p)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:a},!1);else v(this.chart.options.series,function(b){b.dataGrouping=a},!1);this.ordinalSlope=null;c&&this.chart.redraw()}})(L);(function(a){var B=a.each,C=a.Point,G=a.seriesType,p=a.seriesTypes;G(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},\\nthreshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,g){g=p.column.prototype.pointAttribs.call(this,a,g);var m=this.options;delete g.fill;!a.options.color&&m.upColor&&a.openz)););B(v,function(a,b){var e;a.plotX+=h;if(void 0===a.plotY||n)0<=a.plotX&&a.plotX<=f.len?n?(a.plotY=f.translate(a.x,0,1,0,1),a.plotX=C(a.y)?c.translate(a.y,0,0,0,1):0):a.plotY=g.chartHeight-f.bottom-(f.opposite?f.height:0)+f.offset-c.top:a.shapeArgs={};(y=v[b-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),e=y.stackIndex+1);\\na.stackIndex=e});this.onSeries=l}}}(L);(function(a,B){function C(a){l[a+\\\"pin\\\"]=function(b,g,m,f,c){var e=c&&c.anchorX;c=c&&c.anchorY;\\\"circle\\\"===a&&f>m&&(b-=Math.round((f-m)/2),m=f);b=l[a](b,g,m,f);e&&c&&(b.push(\\\"M\\\",\\\"circle\\\"===a?b[1]-b[4]:b[1]+b[4]/2,g>c?g:g+f,\\\"L\\\",e,c),b=b.concat(l.circle(e-1,c-1,2,2)));return b}}var G=a.addEvent,p=a.each,m=a.merge,g=a.noop,v=a.Renderer,z=a.seriesType,u=a.TrackerMixin,y=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;z(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,\\nshape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},threshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,e){var b=this.options,g=a&&a.color||this.color,f=b.lineColor,c=a&&a.lineWidth;a=a&&a.fillColor||\\nb.fillColor;e&&(a=b.states[e].fillColor,f=b.states[e].lineColor,c=b.states[e].lineWidth);return{fill:a||g,stroke:f||g,\\\"stroke-width\\\":c||b.lineWidth||0}},translate:B.translate,getPlotBox:B.getPlotBox,drawPoints:function(){var b=this.points,e=this.chart,g=e.renderer,l,f,c=e.inverted,h=this.options,w=h.y,u,r,v,q,y,x,z=this.yAxis,d={},H=[];for(r=b.length;r--;)v=b[r],x=(c?v.plotY:v.plotX)>this.xAxis.len,l=v.plotX,q=v.stackIndex,u=v.options.shape||h.shape,f=v.plotY,void 0!==f&&(f=v.plotY+w-(void 0!==q&&\\nq*h.stackDistance)),v.anchorX=q?void 0:v.plotX,y=q?void 0:v.plotY,q=v.graphic,void 0!==f&&0<=l&&!x?(q||(q=v.graphic=g.label(\\\"\\\",null,null,u,null,null,h.useHTML).attr(this.pointAttribs(v)).css(m(h.style,v.style)).attr({align:\\\"flag\\\"===u?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),v.graphic.div&&(v.graphic.div.point=v),q.shadow(h.shadow),q.isNew=!0),0=m?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),e=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",f=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][e]||\\n(c=a.cursorToScrollbarPosition(c)[e],e=a[e],e=c-e,a.hasDragged=!0,a.updatePosition(f[0]+e,f[1]+e),a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;\\na.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=p(a.to-a.from)*a.options.step;a.updatePosition(p(a.from-c),p(a.to-c));u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),e=a.to-a.from,f=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;\\na.options.vertical&&c.chartY>f||!a.options.vertical&&c.chartX>g?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from-e,a.to-e);u(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=p(b-a),a=0);\\nthis.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,e=this.mouseDownHandler,f=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",e],[c.ownerDocument,\\\"mousemove\\\",f],[c.ownerDocument,\\n\\\"mouseup\\\",g]];y&&a.push([c,\\\"touchstart\\\",e],[c.ownerDocument,\\\"touchmove\\\",f],[c.ownerDocument,\\\"touchend\\\",g]);z(a,function(a){C.apply(null,a)});this._events=a},removeEvents:function(){z(this._events,function(a){t.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();z([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,v(a.scrollbarButtons))}};\\nn(G.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new B(b.chart.renderer,b.options.scrollbar,b.chart),C(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(e(b.options.min,b.min),b.min,b.dataMin),f=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-c,g;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(g=c+f*this.to,c+=f*\\nthis.from):(g=c+f*(1-this.from),c+=f*(1-this.to));b.setExtremes(c,g,!0,!1,a)}))});n(G.prototype,\\\"render\\\",function(a){var b=Math.min(e(this.options.min,this.min),this.min,e(this.dataMin,this.min)),c=Math.max(e(this.options.max,this.max),this.max,e(this.dataMax,this.max)),f=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(f){this.horiz?(f.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),\\nthis.width,this.height),h=1):(f.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!g(this.min)||!g(this.max)?f.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,\\nb):f.setRange(1-b,1-h))}});n(G.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});n(G.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=B})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.color,\\ng=a.defaultOptions,v=a.defined,z=a.destroyObjectProperties,u=a.each,y=a.erase,l=a.error,b=a.extend,e=a.grep,t=a.hasTouch,n=a.isArray,f=a.isNumber,c=a.isObject,h=a.merge,w=a.pick,D=a.removeEvent,r=a.Scrollbar,J=a.Series,q=a.seriesTypes,F=a.wrap,x=[].concat(a.defaultDataGroupingUnits),K=function(a){var b=e(arguments,f);if(b.length)return Math[a].apply(0,b)};x[4]=[\\\"day\\\",[1,2,3,4]];x[5]=[\\\"week\\\",[1,2,3]];q=void 0===q.areaspline?\\\"line\\\":\\\"areaspline\\\";b(g,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,\\nheight:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},maskFill:m(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:q,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:x},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,\\nthreshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",gridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,e,f){a=f.width/\\n2;b=Math.round(a/3)+.5;f=f.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,f+.5,\\\"L\\\",-a-1,f+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,f-3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,f-3]};B.prototype={drawHandle:function(a,b,c,e){var d=this.navigatorOptions.handles.height;this.handles[b][e](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})},drawOutline:function(a,b,c,e){var d=this.navigatorOptions.maskInside,\\nf=this.outline.strokeWidth(),k=f/2,f=f%2/2,g=this.outlineHeight,h=this.scrollbarHeight,l=this.size,m=this.left-h,n=this.top;c?(m-=k,c=n+b+f,b=n+a+f,a=[\\\"M\\\",m+g,n-h-f,\\\"L\\\",m+g,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+g,b,\\\"L\\\",m+g,n+l+h].concat(d?[\\\"M\\\",m+g,c-k,\\\"L\\\",m+g,b+k]:[])):(a+=m+h-f,b+=m+h-f,n+=k,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+g,\\\"L\\\",b,n+g,\\\"L\\\",b,n,\\\"L\\\",m+l+2*h,n].concat(d?[\\\"M\\\",a-k,n,\\\"L\\\",b+k,n]:[]));this.outline[e]({d:a})},drawMasks:function(a,b,c,e){var d=this.left,f=this.top,k=this.height,g,h,l,m;c?(l=[d,d,d],m=[f,f+a,\\nf+b],h=[k,k,k],g=[a,b-a,this.size-b]):(l=[d,d+a,d+b],m=[f,f,f],h=[a,b-a,this.size-b],g=[k,k,k]);u(this.shades,function(a,b){a[e]({x:l[b],y:m[b],width:h[b],height:g[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,f=e.inverted,g=e.renderer,h;a.navigatorGroup=h=g.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var l={cursor:f?\\\"ns-resize\\\":\\\"ew-resize\\\"};u([!c,c,!c],function(d,c){a.shades[c]=g.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===c?\\\"-inside\\\":\\n\\\"-outside\\\")).attr({fill:d?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===c&&l).add(h)});a.outline=g.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,stroke:b.outlineColor}).add(h);b.handles.enabled&&u([0,1],function(d){b.handles.inverted=e.inverted;a.handles[d]=g.symbol(b.handles.symbols[d],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[d].attr({zIndex:7-d}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][d]).add(h);\\nvar c=b.handles;a.handles[d].attr({fill:c.backgroundColor,stroke:c.borderColor,\\\"stroke-width\\\":c.lineWidth}).css(l)})},update:function(a){u(this.series||[],function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});this.destroy();h(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(b,c,e,k){var d=this.chart,g,h,l=this.scrollbarHeight,m,n=this.xAxis;g=n.fake?d.xAxis[0]:n;var q=this.navigatorEnabled,p,r=this.rendered;h=d.inverted;var t,x=d.xAxis[0].minRange,u=\\nd.xAxis[0].options.maxRange;if(!this.hasDragged||v(e)){if(!f(b)||!f(c))if(r)e=0,k=w(n.width,g.width);else return;this.left=w(n.left,d.plotLeft+l+(h?d.plotWidth:0));this.size=p=m=w(n.len,(h?d.plotHeight:d.plotWidth)-2*l);d=h?l:m+2*l;e=w(e,n.toPixels(b,!0));k=w(k,n.toPixels(c,!0));f(e)&&Infinity!==Math.abs(e)||(e=0,k=d);b=n.toValue(e,!0);c=n.toValue(k,!0);t=Math.abs(a.correctFloat(c-b));tu&&(this.grabbedLeft?\\ne=n.toPixels(c-u,!0):this.grabbedRight&&(k=n.toPixels(b+u,!0)));this.zoomedMax=Math.min(Math.max(e,k,0),p);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(e,k),0),p);this.range=this.zoomedMax-this.zoomedMin;p=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);q&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),r=r&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,p,h,r),this.drawOutline(e,p,h,r),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,\\n0,h,r),this.drawHandle(p,1,h,r)));this.scrollbar&&(h?(h=this.top-l,g=this.left-l+(q||!g.opposite?0:(g.titleOffset||0)+g.axisTitleMargin),l=m+2*l):(h=this.top+(q?this.height:-l),g=this.left-l),this.scrollbar.position(g,h,d,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],f,g;a.mouseMoveHandler=f=function(b){a.onMouseMove(b)};a.mouseUpHandler=g=function(b){a.onMouseUp(b)};e=a.getPartsEvents(\\\"mousedown\\\");\\ne.push(C(c,\\\"mousemove\\\",f),C(c.ownerDocument,\\\"mouseup\\\",g));t&&(e.push(C(c,\\\"touchmove\\\",f),C(c.ownerDocument,\\\"touchend\\\",g)),e.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=e;a.series&&a.series[0]&&e.push(C(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,d=[];u([\\\"shades\\\",\\\"handles\\\"],function(c){u(b[c],function(e,f){d.push(C(e.element,a,function(a){b[c+\\\"Mousedown\\\"](a,f)}))})});return d},shadesMousedown:function(a,\\nb){a=this.chart.pointer.normalize(a);var d=this.chart,c=this.xAxis,e=this.zoomedMin,f=this.left,g=this.size,h=this.range,l=a.chartX,m,n;d.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=l,this.fixedWidth=h,this.dragOffset=l-e):(a=l-f-h/2,0===b?a=Math.max(0,a):2===b&&a+h>=g&&(a=g-h,c.reversed?(a-=h,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=h,b=c.toFixedRange(a,a+h,n,m),v(b.min)&&d.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,\\nb.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var d=a.xAxis[0],c=a.inverted&&!d.reversed||!a.inverted&&d.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c?d.min:d.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c?d.max:d.min);a.fixedRange=null},onMouseMove:function(a){var b=this,d=b.chart,c=b.left,e=b.navigatorSize,f=b.range,g=b.dragOffset,h=d.inverted;a.touches&&\\n0===a.touches[0].pageX||(a=d.pointer.normalize(a),d=a.chartX,h&&(c=b.top,d=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,d-c,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,d-c)):b.grabbedCenter&&(b.hasDragged=!0,de+g-f&&(d=e+g-f),b.render(0,0,d-g,d-g+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,d=this.xAxis,c=d&&d.reversed,e=this.scrollbar,\\nf,g,h=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(g=this.fixedExtreme),this.zoomedMax===this.size&&(g=c?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=c?e.dataMax:e.dataMin),d=d.toFixedRange(this.zoomedMin,this.zoomedMax,f,g),v(d.min)&&b.xAxis[0].setExtremes(Math.min(d.min,d.max),Math.max(d.min,d.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",\\ntriggerOp:\\\"navigator-drag\\\",DOMEvent:h}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(u(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&u(a,function(a){D(a,\\n\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&D(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,c=d.enabled,e=b.scrollbar,f=e.enabled,b=c?d.height:0,g=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=g;this.scrollbarEnabled=f;this.navigatorEnabled=c;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+g;this.opposite=w(d.opposite,!c&&a.inverted);var l=\\nthis,e=l.baseSeries,f=a.xAxis.length,m=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};a.extraMargin={type:l.opposite?\\\"plotTop\\\":\\\"marginBottom\\\",value:(c||!a.inverted?l.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=l.opposite?\\\"marginRight\\\":\\\"plotLeft\\\");a.isDirtyBox=!0;l.navigatorEnabled?(l.xAxis=new G(a,h({breaks:n.options.breaks,ordinal:n.options.ordinal},d.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,\\nstartOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[g,0,-g,0],width:b}:{offsets:[0,-g,0,g],height:b})),l.yAxis=new G(a,h(d.yAxis,{id:\\\"navigator-y-axis\\\",alignTicks:!1,offset:0,index:m,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?l.updateNavigatorSeries(!1):0===a.series.length&&(l.unbindRedraw=C(a,\\\"beforeRedraw\\\",function(){0a.inArray(d,l)?(d&&(D(d,\\\"updatedData\\\",e.updatedDataHandler),delete d.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&u(l,function(a){var d=a.navigatorSeries,k=b({color:a.color},n(p)?g.navigator.series:p);d&&!1===e.navigatorOptions.adaptToUpdatedData||(t.name=\\\"Navigator \\\"+l.length,m=a.options||{},r=m.navigatorOptions||{},q=\\nh(m,t,k,r),k=r.data||k.data,e.hasNavigatorData=e.hasNavigatorData||!!k,q.data=k||m.data&&m.data.slice(0),d&&d.options?d.update(q,c):(a.navigatorSeries=f.initSeries(q),a.navigatorSeries.baseSeries=a,x.push(a.navigatorSeries)))});if(p.data&&(!l||!l.length)||n(p))e.hasNavigatorData=!1,p=a.splat(p),u(p,function(a,b){t.name=\\\"Navigator \\\"+(x.length+1);q=h(g.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},t,a);q.data=a.data;\\nq.data&&(e.hasNavigatorData=!0,x.push(f.initSeries(q)))});d&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&C(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);u(b,function(b){C(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});C(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&C(b,\\\"updatedData\\\",this.updatedDataHandler);\\nC(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),v(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,g=a.stickToMin,h=\\na.stickToMax,l=w(this.options.overscroll,0),m,n,q=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(g&&(n=c,m=n+b),h&&(m=e+l,g||(n=Math.max(m-b,q&&q.xData?q.xData[0]:-Number.MAX_VALUE))),p&&(g||h)&&f(n)&&(this.min=this.userMin=n,this.max=this.userMax=m));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=\\nMath.round(a.size);a.stickToMin=f(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){C(this.chart,\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),\\ny(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));u(this.series||[],function(a){a.destroy&&a.destroy()});u(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);u([this.handles],function(a){z(a)},this)}};a.Navigator=B;F(G.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,\\ng=e.chart.pinchType,h=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&(\\\"x\\\"===f||\\\"x\\\"===g?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===f?l=!1:\\\"xy\\\"!==f&&\\\"xy\\\"!==g||!this.options.range||(d=this.previousZoom,v(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});C(p,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new B(this)});C(p,\\\"afterSetChartSize\\\",\\nfunction(){var a=this.legend,b=this.navigator,c,e,f,g;b&&(e=a&&a.options,f=b.xAxis,g=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||this.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&\\\"bottom\\\"===e.verticalAlign&&e.enabled&&!e.floating?a.legendHeight+w(e.margin,10):0)),f&&g&&(this.inverted?f.options.left=\\ng.options.left=b.left:f.options.top=g.options.top=b.top,f.setAxisSize(),g.setAxisSize()))});F(J.prototype,\\\"addPoint\\\",function(a,b,e,f,g){var d=this.options.turboThreshold;d&&this.xData.length>d&&c(b,!0)&&this.chart.navigator&&l(20,!0);a.call(this,b,e,f,g)});C(p,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)});C(J,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});p.prototype.callbacks.push(function(a){var b=\\na.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function B(a){this.init(a)}var C=a.addEvent,G=a.Axis,p=a.Chart,m=a.css,g=a.createElement,v=a.defaultOptions,z=a.defined,u=a.destroyObjectProperties,y=a.discardElement,l=a.each,b=a.extend,e=a.fireEvent,t=a.isNumber,n=a.merge,f=a.pick,c=a.pInt,h=a.splat,w=a.wrap;b(v,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,\\ninputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});v.lang=n(v.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});B.prototype={clickButton:function(a,b){var c=this,e=c.chart,g=c.buttonOptions[a],m=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||m||{},d=n.dataMin,p=n.dataMax,r,k=m&&Math.round(Math.min(m.max,f(p,m.max))),u=g.type,v,n=g._range,w,D,y,z=g.dataGrouping;if(null!==d&&null!==p){e.fixedRange=n;z&&(this.forcedDataGrouping=\\n!0,G.prototype.setDataGrouping.call(m||{chart:this.chart},z,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)m?(u={range:g,max:k,chart:e,dataMin:d,dataMax:p},r=m.minFromRange.call(u),t(u.newMax)&&(k=u.newMax)):n=g;else if(n)r=Math.max(k-n,d),k=Math.min(r+n,p);else if(\\\"ytd\\\"===u)if(m)void 0===p&&(d=Number.MAX_VALUE,p=Number.MIN_VALUE,l(e.series,function(a){a=a.xData;d=Math.min(a[0],d);p=Math.max(a[a.length-1],p)}),b=!1),k=c.getYTDExtremes(p,d,e.time.useUTC),r=w=k.min,k=k.max;else{C(e,\\\"beforeRender\\\",function(){c.clickButton(a)});\\nreturn}else\\\"all\\\"===u&&m&&(r=d,k=p);r+=g._offsetMin;k+=g._offsetMax;c.setSelected(a);m?m.setExtremes(r,k,f(b,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:g}):(v=h(e.options.xAxis)[0],y=v.range,v.range=n,D=v.min,v.min=w,C(e,\\\"load\\\",function(){v.range=y;v.min=D}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},\\n{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,f=c.buttons||[].concat(b.defaultButtons),g=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&e(a,\\\"blur\\\");c&&c.blur&&e(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=f;this.unMouseDown=C(a.container,\\\"mousedown\\\",h);this.unResize=C(a,\\\"resize\\\",h);l(f,b.computeButtonRange);void 0!==g&&f[g]&&this.clickButton(g,!1);C(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&C(a.xAxis[0],\\n\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),e=!b.hasVisibleSeries,f=a.scroller&&a.scroller.getUnionExtremes()||b,g=f.dataMin,h=f.dataMax,a=this.getYTDExtremes(h,g,a.time.useUTC),d=a.min,m=a.max,n=this.selected,k=t(n),p=this.options.allButtonsEnabled,u=this.buttons;l(this.buttonOptions,\\nfunction(a,f){var l=a._range,q=a.type,r=a.count||1,t=u[f],v=0;a=a._offsetMax-a._offsetMin;f=f===n;var x=l>h-g,w=l=864E5*{month:28,year:365}[q]*r-a&&c-36E5<=864E5*{month:31,year:366}[q]*r+a?l=!0:\\\"ytd\\\"===q?(l=m-d+a===c,A=!f):\\\"all\\\"===q&&(l=b.max-b.min>=h-g,y=!f&&k&&l);q=!p&&(x||w||y||e);r=f&&l||l&&!k&&!A;q?v=3:r&&(k=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var b=a.type,c=a.count||1,e={millisecond:1,second:1E3,\\nminute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[b])a._range=e[b]*c;else if(\\\"month\\\"===b||\\\"year\\\"===b)a._range=864E5*{month:30,year:365}[b]*c;a._offsetMin=f(a.offsetMin,0);a._offsetMax=f(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,e=this.chart.time,f=this[a+\\\"Input\\\"];z(b)&&(f.previousValue=f.HCTime,f.HCTime=b);f.value=e.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",f.HCTime);this[a+\\\"DateBox\\\"].attr({text:e.dateFormat(c.inputDateFormat||\\n\\\"%b %e, %Y\\\",f.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];m(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){m(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},drawInput:function(a){function e(){var a=y.value,b=(u.inputDateParser||Date.parse)(a),d=h.xAxis[0],e=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:d,g=e.dataMin,e=e.dataMax;\\nb!==y.previousValue&&(y.previousValue=b,t(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(c(b[0]),c(b[1])-1,c(b[2]))),t(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),w?b>f.maxInput.HCTime?b=void 0:be&&(b=e),void 0!==b&&d.setExtremes(w?b:d.min,w?d.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}var f=this,h=f.chart,l=h.renderer.style||{},p=h.renderer,u=h.options.rangeSelector,d=f.div,w=\\\"min\\\"===a,y,k,A=this.inputGroup;this[a+\\\"Label\\\"]=k=p.label(v.lang[w?\\\"rangeSelectorFrom\\\":\\n\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(A);A.offset+=k.width+5;this[a+\\\"DateBox\\\"]=p=p.label(\\\"\\\",A.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:u.inputBoxWidth||90,height:u.inputBoxHeight||17,stroke:u.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){f.showInput(a);f[a+\\\"Input\\\"].focus()}).add(A);A.offset+=p.width+(w?10:0);this[a+\\\"Input\\\"]=y=g(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",\\ntype:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},d);k.css(n(l,u.labelStyle));p.css(n({color:\\\"#333333\\\"},l,u.inputStyle));m(y,b({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:l.fontSize,fontFamily:l.fontFamily,top:\\\"-9999em\\\"},u.inputStyle));y.onfocus=function(){f.showInput(a)};y.onblur=function(){f.hideInput(a)};y.onchange=e;y.onkeypress=function(a){13===a.keyCode&&e()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-\\na.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var e=this.chart.time,f=new e.Date(a),g=e.get(\\\"FullYear\\\",f);c=c?e.Date.UTC(g,0,1):+new e.Date(g,0,1);b=Math.max(b||0,c);f=f.getTime();return{max:Math.min(a||f,f),min:b}},render:function(a,b){var c=this,e=c.chart,h=e.renderer,m=e.container,n=e.options,d=n.exporting&&!1!==n.exporting.enabled&&n.navigation&&n.navigation.buttonOptions,p=v.lang,r=c.div,k=n.rangeSelector,n=k.floating,\\nt=c.buttons,r=c.inputGroup,u=k.buttonTheme,w=k.buttonPosition,y=k.inputPosition,z=k.inputEnabled,D=u&&u.states,B=e.plotLeft,C,G=c.buttonGroup,L;L=c.rendered;var X=c.options.verticalAlign,Z=e.legend,aa=Z&&Z.options,ba=w.y,Y=y.y,ca=L||!1,W=0,T=0,U;if(!1!==k.enabled){L||(c.group=L=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),c.buttonGroup=G=h.g(\\\"range-selector-buttons\\\").add(L),c.zoomText=h.text(p.rangeSelectorZoom,f(B+w.x,B),15).css(k.labelStyle).add(G),C=f(B+w.x,B)+c.zoomText.getBBox().width+\\n5,l(c.buttonOptions,function(a,b){t[b]=h.button(a.text,C,0,function(){var d=a.events&&a.events.click,e;d&&(e=d.call(a));!1!==e&&c.clickButton(b);c.isActive=!0},u,D&&D.hover,D&&D.select,D&&D.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(G);C+=t[b].width+f(k.buttonSpacing,5)}),!1!==z&&(c.div=r=g(\\\"div\\\",null,{position:\\\"relative\\\",height:0,zIndex:1}),m.parentNode.insertBefore(r,m),c.inputGroup=r=h.g(\\\"input-group\\\").add(L),r.offset=0,c.drawInput(\\\"min\\\"),c.drawInput(\\\"max\\\")));B=e.plotLeft-e.spacing[3];c.updateButtonStates();\\nd&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===w.align&&w.y+G.getBBox().height-12<(d.y||0)+d.height&&(W=-40);\\\"left\\\"===w.align?U=w.x-e.spacing[3]:\\\"right\\\"===w.align&&(U=w.x+W-e.spacing[1]);G.align({y:w.y,width:G.getBBox().width,align:w.align,x:U},!0,e.spacingBox);c.group.placed=ca;c.buttonGroup.placed=ca;!1!==z&&(W=d&&this.titleCollision(e)&&\\\"top\\\"===X&&\\\"right\\\"===y.align&&y.y-r.getBBox().height-12<(d.y||0)+d.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?U=B:\\\"right\\\"===y.align&&(U=-Math.max(e.axisOffset[1],\\n-W)),r.align({y:y.y,width:r.getBBox().width,align:y.align,x:y.x+U-2},!0,e.spacingBox),m=r.alignAttr.translateX+r.alignOptions.x-W+r.getBBox().x+2,d=r.alignOptions.width,p=G.alignAttr.translateX+G.getBBox().x,U=G.getBBox().width+20,(y.align===w.align||p+U>m&&m+d>p&&ba=-W?0:-W),translateY:r.alignAttr.translateY+G.getBBox().height+10}),c.setInputValue(\\\"min\\\",a),c.setInputValue(\\\"max\\\",b),c.inputGroup.placed=ca);c.group.align({verticalAlign:X},\\n!0,e.spacingBox);a=c.group.getBBox().height+20;b=c.group.alignAttr.translateY;\\\"bottom\\\"===X&&(Z=aa&&\\\"bottom\\\"===aa.verticalAlign&&aa.enabled&&!aa.floating?Z.legendHeight+f(aa.margin,10):0,a=a+Z-20,T=b-a-(n?0:k.y)-10);if(\\\"top\\\"===X)n&&(T=0),e.titleOffset&&(T=e.titleOffset+e.options.title.margin),T+=e.margin[0]-e.spacing[0]||0;else if(\\\"middle\\\"===X)if(Y===ba)T=0>Y?b+void 0:b;else if(Y||ba)T=0>Y||0>ba?T-Math.min(Y,ba):b-a+NaN;c.group.translate(k.x,k.y+Math.floor(T));!1!==z&&(c.minInput.style.marginTop=c.group.translateY+\\n\\\"px\\\",c.maxInput.style.marginTop=c.group.translateY+\\\"px\\\");c.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,e=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,e);if(0>a&&0>e||0c&&(e?a=b-g:b=a+g);t(a)&&t(b)||(a=\\nb=void 0);return{min:a,max:b}};G.prototype.minFromRange=function(){var a=this.range,b={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],c,e=this.max,g,h,l=function(a,c){var d=new Date(a),e=d[\\\"get\\\"+b]();d[\\\"set\\\"+b](e+c);e===d[\\\"get\\\"+b]()&&d.setDate(0);return d.getTime()-a};t(a)?(c=e-a,h=a):(c=e+l(e,-a.count),this.chart&&(this.chart.fixedRange=e-c));g=f(this.dataMin,Number.MIN_VALUE);t(c)||(c=g);c<=g&&(c=g,void 0===h&&(h=l(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));t(e)||(c=void 0);return c};C(p,\\\"afterGetContainer\\\",\\nfunction(){this.options.rangeSelector.enabled&&(this.rangeSelector=new B(this))});w(p.prototype,\\\"render\\\",function(a,b,c){var e=this.axes,f=this.rangeSelector;f&&(l(e,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),f.render(),e=f.options.verticalAlign,f.options.floating||(\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0)));a.call(this,b,c)});C(p,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=\\n!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});w(p.prototype,\\\"redraw\\\",function(a,b,c){var e=this.rangeSelector;e&&!e.options.floating&&(e.render(),e=e.options.verticalAlign,\\\"bottom\\\"===e?this.extraBottomMargin=!0:\\\"middle\\\"!==e&&(this.extraTopMargin=!0));a.call(this,b,c)});p.prototype.adjustPlotArea=function(){var a=this.rangeSelector;this.rangeSelector&&\\n(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))};p.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();t(c.min)&&e.render(c.min,c.max)}var c,e=a.rangeSelector,f,g;e&&(g=C(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){e.render(a.min,a.max)}),f=C(a,\\\"redraw\\\",b),b());C(a,\\\"destroy\\\",function(){e&&(f(),g())})});a.RangeSelector=B})(L);(function(a){var B=a.addEvent,C=a.arrayMax,G=a.arrayMin,p=a.Axis,m=a.Chart,g=a.defined,v=a.each,\\nz=a.extend,u=a.format,y=a.grep,l=a.inArray,b=a.isNumber,e=a.isString,t=a.map,n=a.merge,f=a.pick,c=a.Point,h=a.Renderer,w=a.Series,D=a.splat,r=a.SVGRenderer,J=a.VMLRenderer,q=a.wrap,F=w.prototype,x=F.init,K=F.processData,d=c.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(b,c,d){var g=e(b)||b.nodeName,k=arguments[g?1:0],h=k.series,l=a.getOptions(),p,q=f(k.navigator&&k.navigator.enabled,l.navigator.enabled,!0),r=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},v={shadow:!1,\\nborderWidth:0};k.xAxis=t(D(k.xAxis||{}),function(a,b){return n({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},l.xAxis,l.xAxis&&l.xAxis[b],a,{type:\\\"datetime\\\",categories:null},r)});k.yAxis=t(D(k.yAxis||{}),function(a,b){p=f(a.opposite,!0);return n({labels:{y:-2},opposite:p,showLastLabel:!(!a.categories&&\\\"category\\\"!==a.type),title:{text:null}},l.yAxis,l.yAxis&&l.yAxis[b],a)});k.series=null;k=n({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:q},\\nscrollbar:{enabled:f(l.scrollbar.enabled,!0)},rangeSelector:{enabled:f(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:f(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:v,columnrange:v,candlestick:v,ohlc:v}},k,{isStock:!0});k.series=h;return g?new m(b,k,d):new m(k,c)};q(p.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;\\nreturn this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});B(p,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});q(p.prototype,\\\"getPlotLinePath\\\",function(c,d,k,h,m,n){var p=this,q=this.isLinked&&!this.series?this.linkedParent.series:\\nthis.series,r=p.chart,u=r.renderer,w=p.left,x=p.top,y,A,z,E,B=[],D=[],C,H;if(\\\"xAxis\\\"!==p.coll&&\\\"yAxis\\\"!==p.coll)return c.apply(this,[].slice.call(arguments,1));D=function(a){var c=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=p.options[c];return b(a)?[r[c][a]]:e(a)?[r.get(a)]:t(q,function(a){return a[c]})}(p.coll);v(p.isXAxis?r.yAxis:r.xAxis,function(a){if(g(a.options.id)?-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=g(a.options[b])?r[b][a.options[b]]:r[b][0];p===b&&D.push(a)}});C=D.length?\\n[]:[p.isXAxis?r.yAxis[0]:r.xAxis[0]];v(D,function(b){-1!==l(b,C)||a.find(C,function(a){return a.pos===b.pos&&a.len&&b.len})||C.push(b)});H=f(n,p.translate(d,null,null,h));b(H)&&(p.horiz?v(C,function(a){var b;A=a.pos;E=A+a.len;y=z=Math.round(H+p.transB);if(yw+p.width)m?y=z=Math.min(Math.max(w,y),w+p.width):b=!0;b||B.push(\\\"M\\\",y,A,\\\"L\\\",z,E)}):v(C,function(a){var b;y=a.pos;z=y+a.len;A=E=Math.round(x+p.height-H);if(Ax+p.height)m?A=E=Math.min(Math.max(x,A),p.top+p.height):b=!0;b||B.push(\\\"M\\\",\\ny,A,\\\"L\\\",z,E)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});e=m.getBBox();if(h){if(q&&!b||!q&&b)l=m.y-e.height}else l=m.y-e.height/2;h?(b=c-e.x,c=c+this.width-e.x):(b=\\\"left\\\"===this.labelAlign?c:0,c=\\\"right\\\"===this.labelAlign?c+this.width:d.chartWidth);m.translateX=\\nc&&(t=-(m.translateX+e.width-c));m.attr({x:a+t,y:l,anchorX:h?a:this.opposite?0:d.chartWidth,anchorY:h?this.opposite?d.chartHeight:0:l+e.height/2})}});F.init=function(){x.apply(this,arguments);this.setCompare(this.options.compare)};F.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&\\n(this.isDirty=!0)};F.processData=function(){var a,c=-1,d,e,f=!0===this.options.compareStart?0:1,g,h;K.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,g=e.length,this.pointArrayMap&&(c=l(\\\"close\\\",this.pointArrayMap),-1===c&&(c=l(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==h){this.compareValue=h;break}};q(F,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,\\n1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=G(b),this.dataMax=C(b))});p.prototype.setCompare=function(a,b){this.isXAxis||(v(this.series,function(b){b.setCompare(a)}),f(b,!0)&&this.chart.redraw())};c.prototype.tooltipFormatter=function(b){b=b.replace(\\\"{point.change}\\\",(0g?this:a,a=(g.max-g.min)*g.transA,g.pixelPadding=g.len-a,g.minPixelPadding=\\ng.pixelPadding/2,a=g.fixTo)){a=a[1]-g.toValue(a[0],!0);a*=g.transA;if(Math.abs(a)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)a=0;g.minPixelPadding-=a}});l(h,\\\"render\\\",function(){this.fixTo=null})})(x);(function(a){var l=a.addEvent,h=a.Axis,k=a.Chart,f=a.color,q,g=a.each,u=a.extend,t=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,n=a.merge,r=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,h.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(h.prototype.keepProps),init:function(a,b){var c=\\\"vertical\\\"!==a.options.legend.layout,m;this.coll=\\\"colorAxis\\\";m=n(this.defaultColorAxisOptions,\\n{side:c?2:1,reversed:!c},b,{opposite:!c,showEmpty:!1,title:null,visible:a.options.legend.enabled});h.prototype.init.call(this,a,m);b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=c;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var b=this.chart,c,m=0,d=b.options.chart.colorCount,e=this.options,y=a.dataClasses.length;this.dataClasses=c=[];this.legendItems=[];g(a.dataClasses,function(a,p){a=n(a);c.push(a);a.color||(\\\"category\\\"===e.dataClassColor?(p=b.options.colors,\\nd=p.length,a.color=p[m],a.colorIndex=m,m++,m===d&&(m=0)):a.color=f(e.minColor).tweenTo(f(e.maxColor),2>y?.5:p/(y-1)))})},setTickPositions:function(){if(!this.dataClasses)return h.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];g(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){h.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nb=this.chart,c=b.options.legend||{},p,d;a?(this.left=c=a.attr(\\\"x\\\"),this.top=p=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=b.chartWidth-c-d,this.bottom=b.chartHeight-p-a,this.len=this.horiz?d:a,this.pos=this.horiz?c:p):this.len=(this.horiz?c.symbolWidth:c.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,b){var c=this.stops,p,m,v=this.dataClasses,\\nd,e;if(v)for(e=v.length;e--;){if(d=v[e],p=d.from,c=d.to,(void 0===p||a>=p)&&(void 0===c||a<=c)){m=d.color;b&&(b.dataClass=e,b.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(e=c.length;e--&&!(a>c[e][0]););p=c[e]||c[e+1];c=c[e+1]||p;a=1-(c[0]-a)/(c[0]-p[0]||1);m=p.color.tweenTo(c.color,a)}return m},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,h.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.reversed;a=b?1:0;b=b?0:1;a=this.horiz?[a,0,b,0]:[0,b,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,b){var c=a.padding,p=a.options,d=this.horiz,m=r(p.symbolWidth,d?this.defaultLegendLength:12),v=r(p.symbolHeight,d?12:this.defaultLegendLength),e=r(p.labelPadding,d?16:30),p=r(p.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,m,v).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=m+c+(d?p:e);this.legendItemHeight=v+c+(d?e:0)},setState:function(a){g(this.series,function(b){b.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var c=b&&b.plotX,p=b&&b.plotY,\\nd,e=this.pos,m=this.len;b&&(d=this.toPixels(b[b.series.colorKey]),de+m&&(d=e+m+2),b.plotX=d,b.plotY=this.len-d,h.prototype.drawCrosshair.call(this,a,b),b.plotX=c,b.plotY=p,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,e){return t(e)?this.horiz?[\\\"M\\\",e-4,this.top-6,\\\"L\\\",e+4,this.top-6,e,this.top,\\n\\\"Z\\\"]:[\\\"M\\\",this.left,e,\\\"L\\\",this.left-6,e+6,this.left-6,e-6,\\\"Z\\\"]:h.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var c=this.chart,d=c.legend;g(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&d.allItems&&(g(d.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=n(this.userOptions,a);h.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},remove:function(){this.legendItem&&\\nthis.chart.legend.destroyItem(this);h.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,v=this.chart,c=this.legendItems,p=v.options.legend,n=p.valueDecimals,r=p.valueSuffix||\\\"\\\",y;c.length||g(this.dataClasses,function(p,m){var w=!0,f=p.from,q=p.to;y=\\\"\\\";void 0===f?y=\\\"\\\\x3c \\\":void 0===q&&(y=\\\"\\\\x3e \\\");void 0!==f&&(y+=a.numberFormat(f,n)+r);void 0!==f&&void 0!==q&&(y+=\\\" - \\\");void 0!==q&&(y+=a.numberFormat(q,n)+r);c.push(u({chart:v,name:y,options:{},drawLegendSymbol:b.drawRectangle,\\nvisible:!0,setState:d,isDataClass:!0,setVisible:function(){w=this.visible=!w;g(e.series,function(a){g(a.points,function(a){a.dataClass===m&&a.setVisible(w)})});v.legend.colorizeItem(this,w)}},p))});return c},name:\\\"\\\"}),g([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),l(k,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),l(e,\\\"afterGetAllItems\\\",function(b){var d=[],\\nc=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?d=c.getDataClassLegendSymbols():d.push(c)),g(c.series,function(c){a.erase(b.allItems,c)}));for(;d.length;)b.allItems.unshift(d.pop())}),l(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),l(e,\\\"afterUpdate\\\",function(a,b,c){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},c)}))})(x);(function(a){var l=a.defined,h=a.each,k=a.noop,f=a.seriesTypes;\\na.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";h([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],\\ngetSymbol:k,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,k=this.colorAxis,l=this.colorKey;h(this.data,function(e){var b=e[l];if(b=e.options.color||(e.isNull?f:k&&void 0!==b?k.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(x);(function(a){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&\\na.stopPropagation(),a.cancelBubble=!0)}function h(a){this.init(a)}var k=a.addEvent,f=a.Chart,q=a.doc,g=a.each,u=a.extend,t=a.merge,e=a.pick;h.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};h.prototype.update=function(b){var d=this.chart,n=d.options.mapNavigation,f,m,v,c,p,w=function(a){this.handler.call(d,a);l(a)},q=d.mapNavButtons;b&&(n=d.options.mapNavigation=t(d.options.mapNavigation,b));for(;q.length;)q.pop().destroy();e(n.enableButtons,n.enabled)&&!d.renderer.forExport&&a.objectEach(n.buttons,\\nfunction(a,b){f=t(n.buttonOptions,a);m=f.theme;m.style=t(f.theme.style,f.style);c=(v=m.states)&&v.hover;p=v&&v.select;a=d.renderer.button(f.text,0,0,w,m,c,p,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);k(a.element,\\\"dblclick\\\",l);q.push(a)});this.updateEvents(n)};h.prototype.updateEvents=\\nfunction(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||k(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||k(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);l(a);return!1}):this.unbindMouseWheel&&\\n(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){g([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=b.dataMax-b.dataMin&&p.y<=c.dataMin&&p.height>=c.dataMax-c.dataMin;q&&(b.fixTo=[q-b.pos,d]);m&&(c.fixTo=[m-c.pos,f]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(b.setExtremes(p.x,p.x+p.width,!1),c.setExtremes(p.y,p.y+p.height,!1));this.redraw()}});k(f,\\\"beforeRender\\\",function(){this.mapNavigation=new h(this);this.mapNavigation.update()})})(x);(function(a){var l=\\na.extend,h=a.pick,k=a.Pointer;a=a.wrap;l(k.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/\\n120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(k.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;h(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,\\\"pinchTranslate\\\",function(a,h,g,k,l,e,b){a.call(this,h,g,k,l,e,b);\\\"map\\\"===this.chart.options.chart.type&&\\nthis.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,g,k,l,e,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var l=a.colorPointMixin,h=a.each,k=a.extend,f=a.isNumber,q=a.map,g=a.merge,u=a.noop,t=a.pick,e=a.isArray,b=a.Point,d=a.Series,n=a.seriesType,r=a.seriesTypes,m=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;n(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},g(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,m=-b,v=b,n=b,g=this.xAxis,k=this.yAxis,q;\\nh(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var p=c.path||[],w=p.length,g=!1,h=-b,k=b,y=-b,r=b,A=c.properties;if(!c._foundBox){for(;w--;)f(p[w])&&(g?(h=Math.max(h,p[w]),k=Math.min(k,p[w])):(y=Math.max(y,p[w]),r=Math.min(r,p[w])),g=!g);c._midX=k+(h-k)*t(c.middleX,A&&A[\\\"hc-middle-x\\\"],.5);c._midY=r+(y-r)*t(c.middleY,A&&A[\\\"hc-middle-y\\\"],.5);c._maxX=h;c._minX=k;c._maxY=y;c._minY=r;c.labelrank=t(c.labelrank,(h-k)*(y-r));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);m=Math.max(m,c._maxY);v=Math.min(v,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(v,t(this.minY,b)),this.maxY=Math.max(m,t(this.maxY,-b)),this.minX=Math.min(e,t(this.minX,b)),this.maxX=Math.max(d,t(this.maxX,-b)),g&&void 0===g.options.minRange&&(g.minRange=Math.min(5*n,(this.maxX-this.minX)/5,g.minRange||b)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*n,(this.maxY-this.minY)/5,k.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,m=b.transA,b=b.minPixelPadding,v=d.min,n=d.transA,d=d.minPixelPadding,g,h=[];if(a)for(g=a.length;g--;)f(a[g])?(h[g]=c?(a[g]-e)*m+b:(a[g]-v)*n+d,c=!c):h[g]=a[g];return h},setData:function(c,b,v,n){var p=this.options,w=this.chart.options.chart,\\nk=w&&w.map,r=p.mapData,l=p.joinBy,t=null===l,B=p.keys||this.pointArrayMap,u=[],x={},z=this.chart.mapTransforms;!r&&k&&(r=\\\"string\\\"===typeof k?a.maps[k]:k);t&&(l=\\\"_i\\\");l=this.joinBy=m(l);l[1]||(l[1]=l[0]);c&&h(c,function(b,d){var m=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!p.keys&&b.length>B.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++m);for(var v=0;vg&&.99n&&(n=g=1,k=Math.round(k),l=Math.round(l)),t=this.transformGroup,m.renderer.globalAnimation?(u=t.attr(\\\"translateX\\\"),z=t.attr(\\\"translateY\\\"),x=t.attr(\\\"scaleX\\\"),G=t.attr(\\\"scaleY\\\"),\\nt.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:u+(k-u)*b.pos,translateY:z+(l-z)*b.pos,scaleX:x+(g-x)*b.pos,scaleY:G+(n-G)*b.pos})}})):t.attr({translateX:k,translateY:l,scaleX:g,scaleY:n}));v||a.group.element.setAttribute(\\\"stroke-width\\\",a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]/(g||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},\\nrender:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:e,width:2*e,height:2*e}),c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:r.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,f=b,n=this.isXAxis,\\nk=n?\\\"xData\\\":\\\"yData\\\",r=this.min,u={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,D=-Number.MAX_VALUE,E=this.max-r,C=b/E,F=[];q(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,F.push(b),n&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);u[a]=c?x*b/100:b}),b.minPxSize=u.minSize,b.maxPxSize=Math.max(u.maxSize,u.minSize),b=b.zData,b.length&&(A=t(d.zMin,Math.min(A,Math.max(h(b),!1===d.displayNegative?\\nd.zThreshold:-Number.MAX_VALUE))),D=t(d.zMax,Math.max(D,l(b))))))});q(F,function(b){var c=b[k],e=c.length,m;n&&b.getRadii(A,D,b.minPxSize,b.maxPxSize);if(0c,f=b[d][1]>c,e!==f&&h<(b[d][0]-b[a][0])*(c-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var h=a.Chart,k=a.each,f=a.extend,q=a.format,g=a.merge,u=a.win,t=a.wrap;h.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);\\ne=b.rotation?[e[0]*d+e[1]*f,-e[0]*f+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};h.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&\\nMath.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-f,y:e.x*f+e.y*d}:e);return{lat:b.y,lon:b.x}}};h.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&l({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};h.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,d,f;\\nif(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(f=this.transformFromLatLon(e,b[d]),l({x:f.x,y:-f.y},b[d].hitZone.coordinates[0])))return f;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],h=function(a){var b,d=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=q(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;!c||void 0===e&&void 0===d||c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();c=this.sanitizeSVG(c,g);g=null;b.destroy();B(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&a.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||\\ne.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);D(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>g)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);\\nk(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);C.focus();C.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);D(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,G=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],x=Math.max(v,m),y,r;l||(d[p]=l=q(\\\"div\\\",{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:x+\\\"px\\\"},\\nd.container),y=q(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(y,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),r=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(w(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(r,500)}),w(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),w(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,a)||r()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);\\nif(f.isObject(a,!0)){var b;a.separator?b=q(\\\"hr\\\",null,null,y):(b=q(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();r();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,y),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},n.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(y,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=\\nl.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-x+\\\"px\\\":b.left=e-x+\\\"px\\\";c+m+d.exportMenuHeight>G&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=G-c-x+\\\"px\\\":b.top=c+m-x+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,\\nk=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=r(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",title:r(b.options.lang[c._titleKey],\\\"\\\"),zIndex:3});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&\\n(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add().align(t(c,{width:d.width,x:r(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,g)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,\\nh;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);H(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;B(a)}),e.length=0);c&&(k(c,function(a){a()}),c.length=0)}});J.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=\\nfunction(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],E(e,function(b){a.addButton(b)}),a.isDirtyExporting=!1);w(a,\\\"destroy\\\",a.destroyExport)};A.prototype.callbacks.push(function(a){a.renderExporting();w(a,\\\"redraw\\\",a.renderExporting);k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);r(c,!0)&&a.redraw()}}})})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.0 (2018-04-13)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(B){\\\"object\\\"===typeof module&&module.exports?module.exports=B:B(Highcharts)})(function(B){(function(b){var p=b.deg2rad,y=b.pick;b.perspective=function(t,g,A){var z=g.options.chart.options3d,n=A?g.inverted:!1,r=g.plotWidth/2,x=g.plotHeight/2,q=z.depth/2,f=y(z.depth,1)*y(z.viewDistance,0),a=g.scale3d||1,d=p*z.beta*(n?-1:1),z=p*z.alpha*(n?-1:1),h=Math.cos(z),k=Math.cos(-d),e=Math.sin(z),c=Math.sin(-d);A||(r+=g.plotLeft,x+=g.plotTop);return b.map(t,function(b){var d,l;l=(n?b.y:b.x)-r;var v=(n?\\nb.x:b.y)-x,G=(b.z||0)-q;d=k*l-c*G;b=-e*c*l+h*v-k*e*G;l=h*c*l+e*v+h*k*G;v=0d&&f-d>Math.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d+Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d+Math.PI/2,f,k,l))):fMath.PI/2+.0001?(m=m.concat(p(a,e,c,b,d,d-Math.PI/2,k,l)),m=m.concat(p(a,e,c,b,d-Math.PI/2,f,k,l))):[\\\"C\\\",a+c*Math.cos(d)-c*w*C*Math.sin(d)+k,e+b*Math.sin(d)+b*w*C*Math.cos(d)+l,a+c*Math.cos(f)+c*w*C*Math.sin(f)+k,e+b*Math.sin(f)-\\nb*w*C*Math.cos(f)+l,a+c*Math.cos(f)+k,e+b*Math.sin(f)+l]}var y=Math.cos,t=Math.PI,g=Math.sin,A=b.animObject,z=b.charts,n=b.color,r=b.defined,x=b.deg2rad,q=b.each,f=b.extend,a=b.inArray,d=b.map,h=b.merge,k=b.perspective,e=b.pick,c=b.SVGElement,l=b.SVGRenderer,u=b.wrap,w=4*(Math.sqrt(2)-1)/3/(t/2);l.prototype.toLinePath=function(a,e){var c=[];q(a,function(a){c.push(\\\"L\\\",a.x,a.y)});a.length&&(c[0]=\\\"M\\\",e&&c.push(\\\"Z\\\"));return c};l.prototype.toLineSegments=function(a){var e=[],c=!0;q(a,function(a){e.push(c?\\n\\\"M\\\":\\\"L\\\",a.x,a.y);c=!c});return e};l.prototype.face3d=function(a){var c=this,m=this.createElement(\\\"path\\\");m.vertexes=[];m.insidePlotArea=!1;m.enabled=!0;u(m,\\\"attr\\\",function(a,m){if(\\\"object\\\"===typeof m&&(r(m.enabled)||r(m.vertexes)||r(m.insidePlotArea))){this.enabled=e(m.enabled,this.enabled);this.vertexes=e(m.vertexes,this.vertexes);this.insidePlotArea=e(m.insidePlotArea,this.insidePlotArea);delete m.enabled;delete m.vertexes;delete m.insidePlotArea;var d=k(this.vertexes,z[c.chartIndex],this.insidePlotArea),\\nC=c.toLinePath(d,!0),d=b.shapeArea(d),d=this.enabled&&0b.faces.length;)c.faces.pop().destroy();\\nfor(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?m=[a,0]:0>b.shapeArea(c)&&(m=[c,1]);return m};D=w([3,2,1,0],[7,6,5,4]);a=D[0];u=D[1];D=w([1,6,7,0],[4,5,2,3]);v=D[0];h=D[1];D=w([1,2,5,6],[0,7,4,3]);w=D[0];D=D[1];1===D?g+=1E4*(1E3-c):D||\\n(g+=1E4*c);g+=10*(!h||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var e=a.x,b=a.y,d=a.start,f=a.end-.00001,l=a.r,k=a.innerR,u=a.depth,h=a.alpha,q=a.beta,v=Math.cos(d),w=Math.sin(d);a=Math.cos(f);var n=Math.sin(f),r=l*Math.cos(q),l=l*Math.cos(h),z=k*Math.cos(q),x=k*Math.cos(h),k=u*Math.sin(q),A=u*Math.sin(h),u=[\\\"M\\\",e+r*v,b+l*w],u=u.concat(p(e,b,r,l,d,f,0,0)),u=u.concat([\\\"L\\\",e+z*a,b+x*n]),u=u.concat(p(e,b,z,x,f,d,0,0)),u=u.concat([\\\"Z\\\"]),B=\\n0-B?d:f>-B?-B:d,E=fF&&dt-q&&dl&&(m=Math.min(m,1-Math.abs((a+e)/(l+e))%1));dq&&(m=0>q?Math.min(m,(h+c)/(-q+h+c)):Math.min(m,1-(h+c)/(q+c)%1));ka?-1:0},u=l([{x:d,y:e,z:c},{x:h,y:e,z:c},{x:h,y:e,z:0},{x:d,y:e,z:0}]),w=l([{x:d,y:k,z:0},{x:h,y:k,z:0},{x:h,y:k,z:c},{x:d,y:k,z:c}]),v=l([{x:d,y:k,z:0},{x:d,y:k,z:c},{x:d,y:e,z:c},{x:d,y:e,z:0}]),r=l([{x:h,y:k,z:c},{x:h,y:k,z:0},{x:h,y:e,z:0},{x:h,y:e,z:c}]),m=l([{x:d,y:e,z:0},{x:h,y:e,z:0},{x:h,y:k,z:0},{x:d,y:k,z:0}]),l=l([{x:d,y:k,z:c},{x:h,y:k,z:c},\\n{x:h,y:e,z:c},{x:d,y:e,z:c}]),t=!1,A=!1,x=!1,p=!1;g([].concat(q.xAxis,q.yAxis,q.zAxis),function(a){a&&(a.horiz?a.opposite?A=!0:t=!0:a.opposite?p=!0:x=!0)});var y=function(a,c,e){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],d={},f=0;fe*d[b][c]?b=f:e*d[f][c]===e*d[b][c]&&d[f].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var f=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];g=[];for(var d=0;6>d;d++)g.push(this.pos*a[d]+(1-this.pos)*f[d])}else g=this.end;this.elem.attr(this.prop,\\ng,null,!0)}})(B);(function(b){function p(e,c,b){if(!e.chart.is3d()||\\\"colorAxis\\\"===e.coll)return c;var d=e.chart,l=z*d.options.chart.options3d.alpha,h=z*d.options.chart.options3d.beta,k=f(b&&e.options.title.position3d,e.options.labels.position3d);b=f(b&&e.options.title.skew3d,e.options.labels.skew3d);var m=d.frame3d,g=d.plotLeft,n=d.plotWidth+g,r=d.plotTop,t=d.plotHeight+r,d=!1,x=0,A=0,p={x:0,y:1,z:0};c=e.swapZ({x:c.x,y:c.y,z:0});if(e.isZAxis)if(e.opposite){if(null===m.axes.z.top)return{};A=c.y-r;\\nc.x=m.axes.z.top.x;c.y=m.axes.z.top.y;g=m.axes.z.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{};A=c.y-t;c.x=m.axes.z.bottom.x;c.y=m.axes.z.bottom.y;g=m.axes.z.bottom.xDir;d=!m.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===m.axes.x.top)return{};A=c.y-r;c.y=m.axes.x.top.y;c.z=m.axes.x.top.z;g=m.axes.x.top.xDir;d=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};A=c.y-t;c.y=m.axes.x.bottom.y;c.z=m.axes.x.bottom.z;g=m.axes.x.bottom.xDir;d=!m.bottom.frontFacing}else if(e.opposite){if(null===\\nm.axes.y.right)return{};x=c.x-n;c.x=m.axes.y.right.x;c.z=m.axes.y.right.z;g=m.axes.y.right.xDir;g={x:g.z,y:g.y,z:-g.x}}else{if(null===m.axes.y.left)return{};x=c.x-g;c.x=m.axes.y.left.x;c.z=m.axes.y.left.z;g=m.axes.y.left.xDir}\\\"chart\\\"!==k&&(\\\"flap\\\"===k?e.horiz?(h=Math.sin(l),l=Math.cos(l),e.opposite&&(h=-h),d&&(h=-h),p={x:g.z*h,y:l,z:-g.x*h}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:\\\"ortho\\\"===k?e.horiz?(p=Math.cos(l),k=Math.sin(h)*p,l=-Math.sin(l),h=-p*Math.cos(h),p={x:g.y*h-g.z*l,y:g.z*k-g.x*h,z:g.x*l-\\ng.y*k},l=1/Math.sqrt(p.x*p.x+p.y*p.y+p.z*p.z),d&&(l=-l),p={x:l*p.x,y:l*p.y,z:l*p.z}):g={x:Math.cos(h),y:0,z:Math.sin(h)}:e.horiz?p={x:Math.sin(h)*Math.sin(l),y:Math.cos(l),z:-Math.cos(h)*Math.sin(l)}:g={x:Math.cos(h),y:0,z:Math.sin(h)});c.x+=x*g.x+A*p.x;c.y+=x*g.y+A*p.y;c.z+=x*g.z+A*p.z;d=q([c],e.chart)[0];b?(0>a(q([c,{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,z:c.z+p.z}],e.chart))&&(g={x:-g.x,y:-g.y,z:-g.z}),e=q([{x:c.x,y:c.y,z:c.z},{x:c.x+g.x,y:c.y+g.y,z:c.z+g.z},{x:c.x+p.x,y:c.y+p.y,\\nz:c.z+p.z}],e.chart),d.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,d.x,d.y],d.matrix[4]-=d.x*d.matrix[0]+d.y*d.matrix[2],d.matrix[5]-=d.x*d.matrix[1]+d.y*d.matrix[3]):d.matrix=null;return d}var y,t=b.addEvent,g=b.Axis,A=b.Chart,z=b.deg2rad,n=b.each,r=b.extend,x=b.merge,q=b.perspective,f=b.pick,a=b.shapeArea,d=b.splat,h=b.Tick,k=b.wrap;x(!0,g.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,skew3d:null}});t(g,\\\"afterSetOptions\\\",function(){var a;\\nthis.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(a=this.options,a.tickWidth=f(a.tickWidth,0),a.gridLineWidth=f(a.gridLineWidth,1))});k(g.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var b=this.chart,e=b.options.chart.options3d,e=this.isZAxis?b.plotWidth:e.depth,b=b.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],y:c[2],z:e}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],\\ny:c[5],z:e})],e=[];this.horiz?(this.isZAxis?(b.left.visible&&e.push(c[0],c[2]),b.right.visible&&e.push(c[1],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3])),b.top.visible&&e.push(c[0],c[1]),b.bottom.visible&&e.push(c[2],c[3])):(b.front.visible&&e.push(c[0],c[2]),b.back.visible&&e.push(c[1],c[3]),b.left.visible&&e.push(c[0],c[1]),b.right.visible&&e.push(c[2],c[3]));e=q(e,this.chart,!1);return this.chart.renderer.toLineSegments(e)});k(g.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\n\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});k(g.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,e=b[2],d=[],b=this.getPlotLinePath(b[1]),e=this.getPlotLinePath(e);if(b&&e)for(var f=0;f=p.min&&r<=p.max:!1):n.plotZ=0,z.push({x:t(n.plotXold,n.plotX),y:t(n.plotYold,n.plotY),z:t(n.plotZold,n.plotZ)});b=y(z,b,!0);for(x=0;xn&&(d[a[1]]+=d[a[0]]+e,d[a[0]]=-e,n=0);n+d[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==d[a[1]]&&(d[a[1]]=b[a[0]+\\\"Axis\\\"].len-d[a[0]]);if(0!==d[a[1]]&&(d[a[0]]>=b[a[0]+\\\"Axis\\\"].len||d[a[0]]+d[a[1]]<=e)){for(var f in d)d[f]=0;c.outside3dPlot=!0}});c.shapeType=\\\"cuboid\\\";d.z=k;d.depth=h;d.insidePlotArea=!0;f=g([{x:f[0],y:f[1],z:k}],a,!0)[0];c.tooltipPos=[f.x,f.y]}});b.z=k};q(n.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=arguments[1],d=this.yAxis,f=this,k=this.yAxis.reversed;x&&(a?t(f.data,function(a){null!==\\na.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+d.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(t(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});q(n.column.prototype,\\\"plotGroup\\\",function(b,a,d,h,k,e){this.chart.is3d()&&e&&!this[a]&&\\n(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(e)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});q(n.column.prototype,\\\"setVisible\\\",function(b,a){var d=this,f;d.chart.is3d()&&t(d.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\\"hidden\\\";d.options.data[r(b,d.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});\\nb.apply(this,Array.prototype.slice.call(arguments,1))});n.column.prototype.handle3dGrouping=!0;y(z,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,d=b.stacking,h=A(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(d);k=b.stack||0;for(d=0;du||u>K?(++u,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),p.lengthu[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,k=!1,n=[],p=[],l;if(!b||b>a.length)b=a.length;for(;gc[l]?\\\"YY\\\":\\\"YYYY\\\":12=c[l]?(f[l]=\\\"dd\\\",k=!0):f[l].length||(f[l]=\\\"mm\\\")));if(k){for(l=0;la)a=0;if(!g||g>=k.length)g=k.length-1;d.itemDelimiter?m=d.itemDelimiter:(m=null,\\nm=c(k));for(var r=0,t=a;t<=g;t++)\\\"#\\\"===k[t][0]?r++:b(k[t],t-a-r);d.columnTypes&&0!==d.columnTypes.length||!w.length||!w[0].length||\\\"date\\\"!==w[0][1]||d.dateFormat||(d.dateFormat=f(p[0]));this.dataFound()}return p},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,k=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=r.getElementById(b)),v(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&b<=e&&v(a.children,function(a,\\ne){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=k&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(p){function g(g,k,m){function t(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;p&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:m||\\\"json\\\",success:function(a){b&&b.series&&k(a);t()},error:function(a,b){3>++f&&t();return c.error&&\\nc.error(b,a)}});return!0}g(k.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(k.rowsURL,function(a){b.update({data:{rows:a}})})||g(k.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),k=B(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(d){var f=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",c,e,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:f,dataType:\\\"json\\\",success:function(c){d(c);b.enablePolling&&setTimeout(function(){a(d)},b.dataRefreshRate)},error:function(a,c){return b.error&&b.error(c,a)}})}var b=this.options,c=b.googleSpreadsheetKey,f=this.chart,e=b.googleSpreadsheetWorksheet||1,d=b.startRow||0,k=b.endRow||Number.MAX_VALUE,p=b.startColumn||0,g=b.endColumn||Number.MAX_VALUE,n=1E3*(b.dataRefreshRate||2);4E3>n&&(n=4E3);c&&(delete b.googleSpreadsheetKey,\\na(function(a){var b=[];a=a.feed.entry;var c,e=(a||[]).length,h=0,n,m,q;if(!a||0===a.length)return!1;for(q=0;q=p&&q<=g&&(b[q-p]=[]);for(q=0;q=p&&n<=g&&h>=d&&h<=k&&(m=c.gs$cell||c.content,c=null,m.numericValue?c=0<=m.$t.indexOf(\\\"/\\\")||0<=m.$t.indexOf(\\\"-\\\")?m.$t:0a[e+1])):(h&&h.length&&(v=this.parseDate(d)),r&&E(v)&&\\\"float\\\"!==x?(t[e]=d,a[e]=v,a.isDatetime=!0,void 0!==a[e+1]&&(d=v>a[e+1],d!==u&&void 0!==\\nu&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),u=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));r&&a.mixed&&(f[b]=c[b]);if(r&&u&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,a[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,\\nparser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=f;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==\\nd&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():E(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;bparseInt(D.split(\\\"Firefox/\\\")[1],\\n10);return a.Highcharts?a.Highcharts.error(16,!0):{product:\\\"Highstock\\\",version:\\\"6.1.1\\\",deg2rad:2*Math.PI/360,doc:C,hasBidiBug:r,hasTouch:C&&void 0!==C.documentElement.ontouchstart,isMS:q,isWebKit:-1!==D.indexOf(\\\"AppleWebKit\\\"),isFirefox:n,isChrome:f,isSafari:!f&&-1!==D.indexOf(\\\"Safari\\\"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(D),SVG_NS:\\\"http://www.w3.org/2000/svg\\\",chartCount:0,seriesTypes:{},symbolSizes:{},svg:E,win:a,marginNames:[\\\"plotTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"plotLeft\\\"],noop:function(){},\\ncharts:[]}}();(function(a){a.timers=[];var C=a.charts,D=a.doc,E=a.win;a.error=function(q,n){q=a.isNumber(q)?\\\"Highcharts error #\\\"+q+\\\": www.highcharts.com/errors/\\\"+q:q;if(n)throw Error(q);E.console&&console.log(q)};a.Fx=function(a,n,f){this.options=n;this.elem=a;this.prop=f};a.Fx.prototype={dSetter:function(){var a=this.paths[0],n=this.paths[1],f=[],r=this.now,A=a.length,w;if(1===r)f=this.toD;else if(A===n.length&&1>r)for(;A--;)w=parseFloat(a[A]),f[A]=isNaN(w)?n[A]:r*parseFloat(n[A]-w)+w;else f=n;this.elem.attr(\\\"d\\\",\\nf,null,!0)},update:function(){var a=this.elem,n=this.prop,f=this.now,r=this.options.step;if(this[n+\\\"Setter\\\"])this[n+\\\"Setter\\\"]();else a.attr?a.element&&a.attr(n,f,null,!0):a.style[n]=f+this.unit;r&&r.call(a,f,this)},run:function(q,n,f){var r=this,A=r.options,w=function(a){return w.stopped?!1:r.step(a)},y=E.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var c=0;c=y+this.startTime?(this.now=this.end,this.pos=1,this.update(),f=p[this.prop]=!0,a.objectEach(p,function(a){!0!==\\na&&(f=!1)}),f&&w&&w.call(A),q=!1):(this.pos=r.easing((n-this.startTime)/y),this.now=this.start+(this.end-this.start)*this.pos,this.update(),q=!0);return q},initPath:function(q,n,f){function r(a){var b,c;for(e=a.length;e--;)b=\\\"M\\\"===a[e]||\\\"L\\\"===a[e],c=/[a-zA-Z]/.test(a[e+3]),b&&c&&a.splice(e+1,0,a[e+1],a[e+2],a[e+1],a[e+2])}function A(a,b){for(;a.lengtha&&-Infinity=f&&(n=[1/f])));for(r=0;r=q||\\n!A&&w<=(n[r]+(n[r+1]||n[r]))/2);r++);return y=a.correctFloat(y*f,-Math.round(Math.log(.001)/Math.LN10))};a.stableSort=function(a,n){var f=a.length,r,A;for(A=0;Af&&(f=a[n]);return f};a.destroyObjectProperties=function(q,n){a.objectEach(q,function(a,\\nr){a&&a!==n&&a.destroy&&a.destroy();delete q[r]})};a.discardElement=function(q){var n=a.garbageBin;n||(n=a.createElement(\\\"div\\\"));q&&n.appendChild(q);n.innerHTML=\\\"\\\"};a.correctFloat=function(a,n){return parseFloat(a.toPrecision(n||14))};a.setAnimation=function(q,n){n.renderer.globalAnimation=a.pick(q,n.options.chart.animation,!0)};a.animObject=function(q){return a.isObject(q)?a.merge(q):{duration:q?500:0}};a.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,\\nyear:314496E5};a.numberFormat=function(q,n,f,r){q=+q||0;n=+n;var A=a.defaultOptions.lang,w=(q.toString().split(\\\".\\\")[1]||\\\"\\\").split(\\\"e\\\")[0].length,y,p,c=q.toString().split(\\\"e\\\");-1===n?n=Math.min(w,20):a.isNumber(n)?n&&c[1]&&0>c[1]&&(y=n+ +c[1],0<=y?(c[0]=(+c[0]).toExponential(y).split(\\\"e\\\")[0],n=y):(c[0]=c[0].split(\\\".\\\")[0]||0,q=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2;p=(Math.abs(c[1]?c[0]:q)+Math.pow(10,-Math.max(n,w)-1)).toFixed(n);w=String(a.pInt(p));y=3q?\\\"-\\\":\\\"\\\")+(y?w.substr(0,y)+r:\\\"\\\");q+=w.substr(y).replace(/(\\\\d{3})(?=\\\\d)/g,\\\"$1\\\"+r);n&&(q+=f+p.slice(-n));c[1]&&0!==+q&&(q+=\\\"e\\\"+c[1]);return q};Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};a.getStyle=function(q,n,f){if(\\\"width\\\"===n)return Math.max(0,Math.min(q.offsetWidth,q.scrollWidth)-a.getStyle(q,\\\"padding-left\\\")-a.getStyle(q,\\\"padding-right\\\"));if(\\\"height\\\"===n)return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-a.getStyle(q,\\\"padding-top\\\")-\\na.getStyle(q,\\\"padding-bottom\\\"));E.getComputedStyle||a.error(27,!0);if(q=E.getComputedStyle(q,void 0))q=q.getPropertyValue(n),a.pick(f,\\\"opacity\\\"!==n)&&(q=a.pInt(q));return q};a.inArray=function(q,n,f){return(a.indexOfPolyfill||Array.prototype.indexOf).call(n,q,f)};a.grep=function(q,n){return(a.filterPolyfill||Array.prototype.filter).call(q,n)};a.find=Array.prototype.find?function(a,n){return a.find(n)}:function(a,n){var f,r=a.length;for(f=0;f>16,(f&65280)>>8,f&255,1]:4===n&&(A=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!A)for(w=this.parsers.length;w--&&!A;)y=this.parsers[w],(n=y.regex.exec(f))&&(A=y.parse(n));this.rgba=A||[]},get:function(a){var f=this.input,n=this.rgba,w;this.stops?(w=q(f),w.stops=[].concat(w.stops),C(this.stops,function(f,p){w.stops[p]=[w.stops[p][0],f.get(a)]})):w=n&&D(n[0])?\\\"rgb\\\"===a||!a&&1===n[3]?\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\":\\\"a\\\"===a?n[3]:\\\"rgba(\\\"+n.join(\\\",\\\")+\\\")\\\":f;\\nreturn w},brighten:function(a){var f,A=this.rgba;if(this.stops)C(this.stops,function(f){f.brighten(a)});else if(D(a)&&0!==a)for(f=0;3>f;f++)A[f]+=n(255*a),0>A[f]&&(A[f]=0),255x.width)x={width:0,height:0}}else x=this.htmlGetBBox();b.isSVG&&(a=x.width,b=x.height,J&&\\\"11px\\\"===J.fontSize&&17===Math.round(b)&&(x.height=b=14),g&&(x.width=Math.abs(b*Math.sin(e))+Math.abs(a*Math.cos(e)),x.height=Math.abs(b*Math.cos(e))+Math.abs(a*Math.sin(e))));if(F&&0]*>/g,\\\"\\\").replace(/</g,\\\"\\\\x3c\\\").replace(/>/g,\\\"\\\\x3e\\\")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,g,x){\\\"string\\\"===typeof a?x.setAttribute(g,a):a&&this.complexColor(a,g,x)},visibilitySetter:function(a,g,x){\\\"inherit\\\"===a?x.removeAttribute(g):this[g]!==a&&x.setAttribute(g,\\na);this[g]=a},zIndexSetter:function(a,x){var b=this.renderer,c=this.parentGroup,e=(c||b).element||b.box,h,k=this.element,l,M,b=e===b.box;h=this.added;var B;y(a)?(k.setAttribute(\\\"data-z-index\\\",a),a=+a,this[x]===a&&(h=!1)):y(this[x])&&k.removeAttribute(\\\"data-z-index\\\");this[x]=a;if(h){(a=this.zIndex)&&c&&(c.handleZ=!0);x=e.childNodes;for(B=x.length-1;0<=B&&!l;B--)if(c=x[B],h=c.getAttribute(\\\"data-z-index\\\"),M=!y(h),c!==k)if(0>a&&M&&!b&&!B)e.insertBefore(k,x[B]),l=!0;else if(g(h)<=a||M&&(!y(a)||0<=a))e.insertBefore(k,\\nx[B+1]||null),l=!0;l||(e.insertBefore(k,x[b?3:0]||null),l=!0)}return l},_defaultSetter:function(a,g,x){x.setAttribute(g,a)}});C.prototype.yGetter=C.prototype.xGetter;C.prototype.translateXSetter=C.prototype.translateYSetter=C.prototype.rotationSetter=C.prototype.verticalAlignSetter=C.prototype.rotationOriginXSetter=C.prototype.rotationOriginYSetter=C.prototype.scaleXSetter=C.prototype.scaleYSetter=C.prototype.matrixSetter=function(a,g){this[g]=a;this.doTransform=!0};C.prototype[\\\"stroke-widthSetter\\\"]=\\nC.prototype.strokeSetter=function(a,g,x){this[g]=a;this.stroke&&this[\\\"stroke-width\\\"]?(C.prototype.fillSetter.call(this,this.stroke,\\\"stroke\\\",x),x.setAttribute(\\\"stroke-width\\\",this[\\\"stroke-width\\\"]),this.hasStroke=!0):\\\"stroke-width\\\"===g&&0===a&&this.hasStroke&&(x.removeAttribute(\\\"stroke\\\"),this.hasStroke=!1)};D=a.SVGRenderer=function(){this.init.apply(this,arguments)};k(D.prototype,{Element:C,SVG_NS:M,init:function(a,g,x,b,c,e){var h;b=this.createElement(\\\"svg\\\").attr({version:\\\"1.1\\\",\\\"class\\\":\\\"highcharts-root\\\"}).css(this.getStyle(b));\\nh=b.element;a.appendChild(h);n(a,\\\"dir\\\",\\\"ltr\\\");-1===a.innerHTML.indexOf(\\\"xmlns\\\")&&n(h,\\\"xmlns\\\",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=b;this.alignedObjects=[];this.url=(z||l)&&d.getElementsByTagName(\\\"base\\\").length?P.location.href.replace(/#.*?$/,\\\"\\\").replace(/<[^>]*>/g,\\\"\\\").replace(/([\\\\('\\\\)])/g,\\\"\\\\\\\\$1\\\").replace(/ /g,\\\"%20\\\"):\\\"\\\";this.createElement(\\\"desc\\\").add().element.appendChild(d.createTextNode(\\\"Created with Highstock 6.1.1\\\"));this.defs=this.createElement(\\\"defs\\\").add();this.allowHTML=e;\\nthis.forExport=c;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,x,!1);var k;z&&a.getBoundingClientRect&&(g=function(){A(a,{left:0,top:0});k=a.getBoundingClientRect();A(a,{left:Math.ceil(k.left)-k.left+\\\"px\\\",top:Math.ceil(k.top)-k.top+\\\"px\\\"})},g(),this.unSubPixelFix=E(P,\\\"resize\\\",g))},getStyle:function(a){return this.style=k({fontFamily:'\\\"Lucida Grande\\\", \\\"Lucida Sans Unicode\\\", Arial, Helvetica, sans-serif',fontSize:\\\"12px\\\"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},\\nisHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var g=new this.Element;g.init(this,a);return g},draw:K,getRadialAttr:function(a,g){return{cx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2]}},getSpanWidth:function(a){return a.getBBox(!0).width},\\napplyEllipsis:function(a,g,x,b){var c=a.rotation,e=x,h,k=0,l=x.length,M=function(a){g.removeChild(g.firstChild);a&&g.appendChild(d.createTextNode(a))},B;a.rotation=0;e=this.getSpanWidth(a,g);if(B=e>b){for(;k<=l;)h=Math.ceil((k+l)/2),e=x.substring(0,h)+\\\"\\\\u2026\\\",M(e),e=this.getSpanWidth(a,g),k===l?k=l+1:e>b?l=h-1:k=h;0===l&&M(\\\"\\\")}a.rotation=c;return B},escapes:{\\\"\\\\x26\\\":\\\"\\\\x26amp;\\\",\\\"\\\\x3c\\\":\\\"\\\\x26lt;\\\",\\\"\\\\x3e\\\":\\\"\\\\x26gt;\\\",\\\"'\\\":\\\"\\\\x26#39;\\\",'\\\"':\\\"\\\\x26quot;\\\"},buildText:function(a){var x=a.element,b=this,c=b.forExport,\\nh=B(a.textStr,\\\"\\\").toString(),k=-1!==h.indexOf(\\\"\\\\x3c\\\"),l=x.childNodes,v,z=n(x,\\\"x\\\"),t=a.styles,N=a.textWidth,J=t&&t.lineHeight,K=t&&t.textOutline,p=t&&\\\"ellipsis\\\"===t.textOverflow,G=t&&\\\"nowrap\\\"===t.whiteSpace,H=t&&t.fontSize,I,Q,f=l.length,t=N&&!a.added&&this.box,w=function(a){var c;c=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:H||b.style.fontSize||12;return J?g(J):b.fontMetrics(c,a.getAttribute(\\\"style\\\")?a:x).h},y=function(a,g){F(b.escapes,function(x,b){g&&-1!==u(x,g)||(a=a.toString().replace(new RegExp(x,\\n\\\"g\\\"),b))});return a},P=function(a,g){var x;x=a.indexOf(\\\"\\\\x3c\\\");a=a.substring(x,a.indexOf(\\\"\\\\x3e\\\")-x);x=a.indexOf(g+\\\"\\\\x3d\\\");if(-1!==x&&(x=x+g.length+1,g=a.charAt(x),'\\\"'===g||\\\"'\\\"===g))return a=a.substring(x+1),a.substring(0,a.indexOf(g))};I=[h,p,G,J,K,H,N].join();if(I!==a.textCache){for(a.textCache=I;f--;)x.removeChild(l[f]);k||K||p||N||-1!==h.indexOf(\\\" \\\")?(t&&t.appendChild(x),h=k?h.replace(/<(b|strong)>/g,'\\\\x3cspan style\\\\x3d\\\"font-weight:bold\\\"\\\\x3e').replace(/<(i|em)>/g,'\\\\x3cspan style\\\\x3d\\\"font-style:italic\\\"\\\\x3e').replace(//g,\\\"\\\\x3c/span\\\\x3e\\\").split(//g):[h],h=e(h,function(a){return\\\"\\\"!==a}),m(h,function(g,e){var h,k=0;g=g.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").replace(//g,\\\"\\\\x3c/span\\\\x3e|||\\\");h=g.split(\\\"|||\\\");m(h,function(g){if(\\\"\\\"!==g||1===h.length){var l={},B=d.createElementNS(b.SVG_NS,\\\"tspan\\\"),u,F;(u=P(g,\\\"class\\\"))&&n(B,\\\"class\\\",u);if(u=P(g,\\\"style\\\"))u=u.replace(/(;| |^)color([ :])/,\\\"$1fill$2\\\"),n(B,\\\"style\\\",u);(F=P(g,\\\"href\\\"))&&!c&&(n(B,\\\"onclick\\\",\\n'location.href\\\\x3d\\\"'+F+'\\\"'),n(B,\\\"class\\\",\\\"highcharts-anchor\\\"),A(B,{cursor:\\\"pointer\\\"}));g=y(g.replace(/<[a-zA-Z\\\\/](.|\\\\n)*?>/g,\\\"\\\")||\\\" \\\");if(\\\" \\\"!==g){B.appendChild(d.createTextNode(g));k?l.dx=0:e&&null!==z&&(l.x=z);n(B,l);x.appendChild(B);!k&&Q&&(!O&&c&&A(B,{display:\\\"block\\\"}),n(B,\\\"dy\\\",w(B)));if(N){l=g.replace(/([^\\\\^])-/g,\\\"$1- \\\").split(\\\" \\\");F=1N,void 0===v&&(v=g),g&&1!==l.length?(B.removeChild(B.firstChild),t.unshift(l.pop())):(l=t,t=[],l.length&&!G&&(B=d.createElementNS(M,\\\"tspan\\\"),n(B,{dy:J,x:z}),u&&n(B,\\\"style\\\",u),x.appendChild(B)),m>N&&(N=m+1)),l.length&&B.appendChild(d.createTextNode(l.join(\\\" \\\").replace(/- /g,\\\"-\\\")));a.rotation=K}k++}}});Q=Q||x.childNodes.length}),p&&v&&a.attr(\\\"title\\\",y(a.textStr,[\\\"\\\\x26lt;\\\",\\\"\\\\x26gt;\\\"])),t&&t.removeChild(x),K&&a.applyTextOutline&&a.applyTextOutline(K)):x.appendChild(d.createTextNode(y(h)))}},getContrast:function(a){a=\\nr(a).rgba;return 510Math.abs(c.end-c.start-2*Math.PI));var M=Math.cos(e),u=Math.sin(e),F=Math.cos(k),k=Math.sin(k);c=.001>c.end-e-Math.PI?0:1;h=[\\\"M\\\",a+h*M,g+l*u,\\\"A\\\",h,l,0,c,1,a+h*F,g+l*k];y(x)&&h.push(b?\\\"M\\\":\\\"L\\\",a+x*F,g+x*k,\\\"A\\\",x,x,0,c,0,a+x*M,g+x*u);h.push(b?\\\"\\\":\\\"Z\\\");return h},callout:function(a,\\ng,x,b,c){var e=Math.min(c&&c.r||0,x,b),h=e+6,l=c&&c.anchorX;c=c&&c.anchorY;var k;k=[\\\"M\\\",a+e,g,\\\"L\\\",a+x-e,g,\\\"C\\\",a+x,g,a+x,g,a+x,g+e,\\\"L\\\",a+x,g+b-e,\\\"C\\\",a+x,g+b,a+x,g+b,a+x-e,g+b,\\\"L\\\",a+e,g+b,\\\"C\\\",a,g+b,a,g+b,a,g+b-e,\\\"L\\\",a,g+e,\\\"C\\\",a,g,a,g,a+e,g];l&&l>x?c>g+h&&cl?c>g+h&&cb&&l>a+h&&lc&&l>a+h&&la?a+3:Math.round(1.2*a);return{h:x,b:Math.round(.8*x),f:a}},rotCorr:function(a,g,x){var b=a;g&&x&&(b=Math.max(b*Math.cos(g*p),\\n4));return{x:-a/3*Math.sin(g*p),y:b}},label:function(g,b,c,e,h,l,M,B,u){var F=this,d=F.g(\\\"button\\\"!==u&&\\\"label\\\"),t=d.text=F.text(\\\"\\\",0,0,M).attr({zIndex:1}),v,z,N=0,O=3,K=0,p,G,I,Q,f,n={},w,J,P=/^url\\\\((.*?)\\\\)$/.test(e),A=P,r,q,T,R;u&&d.addClass(\\\"highcharts-\\\"+u);A=P;r=function(){return(w||0)%2/2};q=function(){var a=t.element.style,g={};z=(void 0===p||void 0===G||f)&&y(t.textStr)&&t.getBBox();d.width=(p||z.width||0)+2*O+K;d.height=(G||z.height||0)+2*O;J=O+F.fontMetrics(a&&a.fontSize,t).b;A&&(v||(d.box=\\nv=F.symbols[e]||P?F.symbol(e):F.rect(),v.addClass((\\\"button\\\"===u?\\\"\\\":\\\"highcharts-label-box\\\")+(u?\\\" highcharts-\\\"+u+\\\"-box\\\":\\\"\\\")),v.add(d),a=r(),g.x=a,g.y=(B?-J:0)+a),g.width=Math.round(d.width),g.height=Math.round(d.height),v.attr(k(g,n)),n={})};T=function(){var a=K+O,g;g=B?0:J;y(p)&&z&&(\\\"center\\\"===f||\\\"right\\\"===f)&&(a+={center:.5,right:1}[f]*(p-z.width));if(a!==t.x||g!==t.y)t.attr(\\\"x\\\",a),t.hasBoxWidthChanged&&(z=t.getBBox(!0),q()),void 0!==g&&t.attr(\\\"y\\\",g);t.x=a;t.y=g};R=function(a,g){v?v.attr(a,g):n[a]=\\ng};d.onAdd=function(){t.add(d);d.attr({text:g||0===g?g:\\\"\\\",x:b,y:c});v&&y(h)&&d.attr({anchorX:h,anchorY:l})};d.widthSetter=function(g){p=a.isNumber(g)?g:null};d.heightSetter=function(a){G=a};d[\\\"text-alignSetter\\\"]=function(a){f=a};d.paddingSetter=function(a){y(a)&&a!==O&&(O=d.padding=a,T())};d.paddingLeftSetter=function(a){y(a)&&a!==K&&(K=a,T())};d.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==N&&(N=a,z&&d.attr({x:I}))};d.textSetter=function(a){void 0!==a&&t.textSetter(a);q();T()};d[\\\"stroke-widthSetter\\\"]=\\nfunction(a,g){a&&(A=!0);w=this[\\\"stroke-width\\\"]=a;R(g,a)};d.strokeSetter=d.fillSetter=d.rSetter=function(a,g){\\\"r\\\"!==g&&(\\\"fill\\\"===g&&a&&(A=!0),d[g]=a);R(g,a)};d.anchorXSetter=function(a,g){h=d.anchorX=a;R(g,Math.round(a)-r()-I)};d.anchorYSetter=function(a,g){l=d.anchorY=a;R(g,a-Q)};d.xSetter=function(a){d.x=a;N&&(a-=N*((p||z.width)+2*O),d[\\\"forceAnimate:x\\\"]=!0);I=Math.round(a);d.attr(\\\"translateX\\\",I)};d.ySetter=function(a){Q=d.y=Math.round(a);d.attr(\\\"translateY\\\",Q)};var S=d.css;return k(d,{css:function(a){if(a){var g=\\n{};a=H(a);m(d.textProps,function(x){void 0!==a[x]&&(g[x]=a[x],delete a[x])});t.css(g);\\\"width\\\"in g&&q()}return S.call(d,a)},getBBox:function(){return{width:z.width+2*O,height:z.height+2*O,x:z.x-O,y:z.y-O}},shadow:function(a){a&&(q(),v&&v.shadow(a));return d},destroy:function(){x(d.element,\\\"mouseenter\\\");x(d.element,\\\"mouseleave\\\");t&&(t=t.destroy());v&&(v=v.destroy());C.prototype.destroy.call(d);d=F=q=T=R=null}})}});a.Renderer=D})(L);(function(a){var C=a.attr,D=a.createElement,E=a.css,q=a.defined,n=a.each,\\nf=a.extend,r=a.isFirefox,A=a.isMS,w=a.isWebKit,y=a.pick,p=a.pInt,c=a.SVGRenderer,d=a.win,m=a.wrap;f(a.SVGElement.prototype,{htmlCss:function(a){var b=this.element;if(b=a&&\\\"SPAN\\\"===b.tagName&&a.width)delete a.width,this.textWidth=b,this.htmlUpdateTransform();a&&\\\"ellipsis\\\"===a.textOverflow&&(a.whiteSpace=\\\"nowrap\\\",a.overflow=\\\"hidden\\\");this.styles=f(this.styles,a);E(this.element,a);return this},htmlGetBBox:function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},\\nhtmlUpdateTransform:function(){if(this.added){var a=this.renderer,b=this.element,c=this.translateX||0,h=this.translateY||0,d=this.x||0,t=this.y||0,z=this.textAlign||\\\"left\\\",m={left:0,center:.5,right:1}[z],v=this.styles,G=v&&v.whiteSpace;E(b,{marginLeft:c,marginTop:h});this.shadows&&n(this.shadows,function(a){E(a,{marginLeft:c+1,marginTop:h+1})});this.inverted&&n(b.childNodes,function(c){a.invertChild(c,b)});if(\\\"SPAN\\\"===b.tagName){var v=this.rotation,l=this.textWidth&&p(this.textWidth),H=[v,z,b.innerHTML,\\nthis.textWidth,this.textAlign].join(),K;(K=l!==this.oldTextWidth)&&!(K=l>this.oldTextWidth)&&((K=this.textPxLength)||(E(b,{width:\\\"\\\",whiteSpace:G||\\\"nowrap\\\"}),K=b.offsetWidth),K=K>l);K&&/[ \\\\-]/.test(b.textContent||b.innerText)?(E(b,{width:l+\\\"px\\\",display:\\\"block\\\",whiteSpace:G||\\\"normal\\\"}),this.oldTextWidth=l,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;H!==this.cTT&&(G=a.fontMetrics(b.style.fontSize).b,q(v)&&v!==(this.oldRotation||0)&&this.setSpanRotation(v,m,G),this.getSpanCorrection(!q(v)&&\\nthis.textPxLength||b.offsetWidth,G,m,v,z));E(b,{left:d+(this.xCorr||0)+\\\"px\\\",top:t+(this.yCorr||0)+\\\"px\\\"});this.cTT=H;this.oldRotation=v}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var e={},k=this.renderer.getTransformKey();e[k]=e.transform=\\\"rotate(\\\"+a+\\\"deg)\\\";e[k+(r?\\\"Origin\\\":\\\"-origin\\\")]=e.transformOrigin=100*b+\\\"% \\\"+c+\\\"px\\\";E(this.element,e)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c;this.yCorr=-b}});f(c.prototype,{getTransformKey:function(){return A&&!/Edge/.test(d.navigator.userAgent)?\\n\\\"-ms-transform\\\":w?\\\"-webkit-transform\\\":r?\\\"MozTransform\\\":d.opera?\\\"-o-transform\\\":\\\"\\\"},html:function(a,b,c){var e=this.createElement(\\\"span\\\"),k=e.element,d=e.renderer,z=d.isSVG,p=function(a,b){n([\\\"opacity\\\",\\\"visibility\\\"],function(c){m(a,c+\\\"Setter\\\",function(a,c,e,l){a.call(this,c,e,l);b[e]=c})});a.addedSetters=!0};e.textSetter=function(a){a!==k.innerHTML&&delete this.bBox;this.textStr=a;k.innerHTML=y(a,\\\"\\\");e.doTransform=!0};z&&p(e,e.element.style);e.xSetter=e.ySetter=e.alignSetter=e.rotationSetter=function(a,\\nb){\\\"align\\\"===b&&(b=\\\"textAlign\\\");e[b]=a;e.doTransform=!0};e.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};e.attr({text:a,x:Math.round(b),y:Math.round(c)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:\\\"absolute\\\"});k.style.whiteSpace=\\\"nowrap\\\";e.css=e.htmlCss;z&&(e.add=function(a){var b,c=d.box.parentNode,h=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)h.push(a),a=a.parentGroup;n(h.reverse(),function(a){function l(g,b){a[b]=\\ng;\\\"translateX\\\"===b?k.left=g+\\\"px\\\":k.top=g+\\\"px\\\";a.doTransform=!0}var k,g=C(a.element,\\\"class\\\");g&&(g={className:g});b=a.div=a.div||D(\\\"div\\\",g,{position:\\\"absolute\\\",left:(a.translateX||0)+\\\"px\\\",top:(a.translateY||0)+\\\"px\\\",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},b||c);k=b.style;f(a,{classSetter:function(a){return function(g){this.element.setAttribute(\\\"class\\\",g);a.className=g}}(b),on:function(){h[0].div&&e.on.apply({element:h[0].div},arguments);return a},translateXSetter:l,\\ntranslateYSetter:l});a.addedSetters||p(a,k)})}}else b=c;b.appendChild(k);e.added=!0;e.alignOnAdd&&e.htmlUpdateTransform();return e});return e}})})(L);(function(a){var C=a.defined,D=a.each,E=a.extend,q=a.merge,n=a.pick,f=a.timeUnits,r=a.win;a.Time=function(a){this.update(a,!1)};a.Time.prototype={defaultOptions:{},update:function(f){var w=n(f&&f.useUTC,!0),y=this;this.options=f=q(!0,this.options||{},f);this.Date=f.Date||r.Date;this.timezoneOffset=(this.useUTC=w)&&f.timezoneOffset;this.getTimezoneOffset=\\nthis.timezoneOffsetFunction();(this.variableTimezone=!(w&&!f.getTimezoneOffset&&!f.timezone))||this.timezoneOffset?(this.get=function(a,c){var d=c.getTime(),m=d-y.getTimezoneOffset(c);c.setTime(m);a=c[\\\"getUTC\\\"+a]();c.setTime(d);return a},this.set=function(p,c,d){var m;if(-1!==a.inArray(p,[\\\"Milliseconds\\\",\\\"Seconds\\\",\\\"Minutes\\\"]))c[\\\"set\\\"+p](d);else m=y.getTimezoneOffset(c),m=c.getTime()-m,c.setTime(m),c[\\\"setUTC\\\"+p](d),p=y.getTimezoneOffset(c),m=c.getTime()+p,c.setTime(m)}):w?(this.get=function(a,c){return c[\\\"getUTC\\\"+\\na]()},this.set=function(a,c,d){return c[\\\"setUTC\\\"+a](d)}):(this.get=function(a,c){return c[\\\"get\\\"+a]()},this.set=function(a,c,d){return c[\\\"set\\\"+a](d)})},makeTime:function(f,w,y,p,c,d){var m,k,b;this.useUTC?(m=this.Date.UTC.apply(0,arguments),k=this.getTimezoneOffset(m),m+=k,b=this.getTimezoneOffset(m),k!==b?m+=b-k:k-36E5!==this.getTimezoneOffset(m-36E5)||a.isSafari||(m-=36E5)):m=(new this.Date(f,w,n(y,1),n(p,0),n(c,0),n(d,0))).getTime();return m},timezoneOffsetFunction:function(){var f=this,n=this.options,\\ny=r.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a)).getTimezoneOffset()};if(n.timezone){if(y)return function(a){return 6E4*-y.tz(a,n.timezone).utcOffset()};a.error(25)}return this.useUTC&&n.getTimezoneOffset?function(a){return 6E4*n.getTimezoneOffset(a)}:function(){return 6E4*(f.timezoneOffset||0)}},dateFormat:function(f,n,y){if(!a.defined(n)||isNaN(n))return a.defaultOptions.lang.invalidDate||\\\"\\\";f=a.pick(f,\\\"%Y-%m-%d %H:%M:%S\\\");var p=this,c=new this.Date(n),d=this.get(\\\"Hours\\\",c),\\nm=this.get(\\\"Day\\\",c),k=this.get(\\\"Date\\\",c),b=this.get(\\\"Month\\\",c),e=this.get(\\\"FullYear\\\",c),h=a.defaultOptions.lang,u=h.weekdays,t=h.shortWeekdays,z=a.pad,c=a.extend({a:t?t[m]:u[m].substr(0,3),A:u[m],d:z(k),e:z(k,2,\\\" \\\"),w:m,b:h.shortMonths[b],B:h.months[b],m:z(b+1),o:b+1,y:e.toString().substr(2,2),Y:e,H:z(d),k:d,I:z(d%12||12),l:d%12||12,M:z(p.get(\\\"Minutes\\\",c)),p:12>d?\\\"AM\\\":\\\"PM\\\",P:12>d?\\\"am\\\":\\\"pm\\\",S:z(c.getSeconds()),L:z(Math.round(n%1E3),3)},a.dateFormats);a.objectEach(c,function(a,b){for(;-1!==f.indexOf(\\\"%\\\"+\\nb);)f=f.replace(\\\"%\\\"+b,\\\"function\\\"===typeof a?a.call(p,n):a)});return y?f.substr(0,1).toUpperCase()+f.substr(1):f},getTimeTicks:function(a,w,y,p){var c=this,d=[],m={},k,b=new c.Date(w),e=a.unitRange,h=a.count||1,u;if(C(w)){c.set(\\\"Milliseconds\\\",b,e>=f.second?0:h*Math.floor(c.get(\\\"Milliseconds\\\",b)/h));e>=f.second&&c.set(\\\"Seconds\\\",b,e>=f.minute?0:h*Math.floor(c.get(\\\"Seconds\\\",b)/h));e>=f.minute&&c.set(\\\"Minutes\\\",b,e>=f.hour?0:h*Math.floor(c.get(\\\"Minutes\\\",b)/h));e>=f.hour&&c.set(\\\"Hours\\\",b,e>=f.day?0:h*Math.floor(c.get(\\\"Hours\\\",\\nb)/h));e>=f.day&&c.set(\\\"Date\\\",b,e>=f.month?1:h*Math.floor(c.get(\\\"Date\\\",b)/h));e>=f.month&&(c.set(\\\"Month\\\",b,e>=f.year?0:h*Math.floor(c.get(\\\"Month\\\",b)/h)),k=c.get(\\\"FullYear\\\",b));e>=f.year&&c.set(\\\"FullYear\\\",b,k-k%h);e===f.week&&c.set(\\\"Date\\\",b,c.get(\\\"Date\\\",b)-c.get(\\\"Day\\\",b)+n(p,1));k=c.get(\\\"FullYear\\\",b);p=c.get(\\\"Month\\\",b);var t=c.get(\\\"Date\\\",b),z=c.get(\\\"Hours\\\",b);w=b.getTime();c.variableTimezone&&(u=y-w>4*f.month||c.getTimezoneOffset(w)!==c.getTimezoneOffset(y));b=b.getTime();for(w=1;bd.length&&D(d,function(a){0===a%18E5&&\\\"000000000\\\"===c.dateFormat(\\\"%H%M%S%L\\\",a)&&(m[a]=\\\"day\\\")})}d.info=E(a,{higherRanks:m,totalRange:e*h});return d}}})(L);(function(a){var C=a.color,D=a.merge;a.defaultOptions={colors:\\\"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1\\\".split(\\\" \\\"),\\nsymbols:[\\\"circle\\\",\\\"diamond\\\",\\\"square\\\",\\\"triangle\\\",\\\"triangle-down\\\"],lang:{loading:\\\"Loading...\\\",months:\\\"January February March April May June July August September October November December\\\".split(\\\" \\\"),shortMonths:\\\"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\\".split(\\\" \\\"),weekdays:\\\"Sunday Monday Tuesday Wednesday Thursday Friday Saturday\\\".split(\\\" \\\"),decimalPoint:\\\".\\\",numericSymbols:\\\"kMGTPE\\\".split(\\\"\\\"),resetZoom:\\\"Reset zoom\\\",resetZoomTitle:\\\"Reset zoom level 1:1\\\",thousandsSep:\\\" \\\"},global:{},time:a.Time.prototype.defaultOptions,\\nchart:{borderRadius:0,defaultSeriesType:\\\"line\\\",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:\\\"right\\\",x:-10,y:10}},width:null,height:null,borderColor:\\\"#335cad\\\",backgroundColor:\\\"#ffffff\\\",plotBorderColor:\\\"#cccccc\\\"},title:{text:\\\"Chart title\\\",align:\\\"center\\\",margin:15,widthAdjust:-44},subtitle:{text:\\\"\\\",align:\\\"center\\\",widthAdjust:-44},plotOptions:{},labels:{style:{position:\\\"absolute\\\",color:\\\"#333333\\\"}},legend:{enabled:!0,align:\\\"center\\\",alignColumns:!0,layout:\\\"horizontal\\\",\\nlabelFormatter:function(){return this.name},borderColor:\\\"#999999\\\",borderRadius:0,navigation:{activeColor:\\\"#003399\\\",inactiveColor:\\\"#cccccc\\\"},itemStyle:{color:\\\"#333333\\\",fontSize:\\\"12px\\\",fontWeight:\\\"bold\\\",textOverflow:\\\"ellipsis\\\"},itemHoverStyle:{color:\\\"#000000\\\"},itemHiddenStyle:{color:\\\"#cccccc\\\"},shadow:!1,itemCheckboxStyle:{position:\\\"absolute\\\",width:\\\"13px\\\",height:\\\"13px\\\"},squareSymbol:!0,symbolPadding:5,verticalAlign:\\\"bottom\\\",x:0,y:0,title:{style:{fontWeight:\\\"bold\\\"}}},loading:{labelStyle:{fontWeight:\\\"bold\\\",\\nposition:\\\"relative\\\",top:\\\"45%\\\"},style:{position:\\\"absolute\\\",backgroundColor:\\\"#ffffff\\\",opacity:.5,textAlign:\\\"center\\\"}},tooltip:{enabled:!0,animation:a.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:\\\"%A, %b %e, %H:%M:%S.%L\\\",second:\\\"%A, %b %e, %H:%M:%S\\\",minute:\\\"%A, %b %e, %H:%M\\\",hour:\\\"%A, %b %e, %H:%M\\\",day:\\\"%A, %b %e, %Y\\\",week:\\\"Week from %A, %b %e, %Y\\\",month:\\\"%B %Y\\\",year:\\\"%Y\\\"},footerFormat:\\\"\\\",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:C(\\\"#f7f7f7\\\").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\\\x3cspan style\\\\x3d\\\"font-size: 10px\\\"\\\\x3e{point.key}\\\\x3c/span\\\\x3e\\\\x3cbr/\\\\x3e',\\npointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e {series.name}: \\\\x3cb\\\\x3e{point.y}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3e',shadow:!0,style:{color:\\\"#333333\\\",cursor:\\\"default\\\",fontSize:\\\"12px\\\",pointerEvents:\\\"none\\\",whiteSpace:\\\"nowrap\\\"}},credits:{enabled:!0,href:\\\"http://www.highcharts.com\\\",position:{align:\\\"right\\\",x:-10,verticalAlign:\\\"bottom\\\",y:-5},style:{cursor:\\\"pointer\\\",color:\\\"#999999\\\",fontSize:\\\"9px\\\"},text:\\\"Highcharts.com\\\"}};a.setOptions=function(C){a.defaultOptions=D(!0,a.defaultOptions,C);a.time.update(D(a.defaultOptions.global,\\na.defaultOptions.time),!1);return a.defaultOptions};a.getOptions=function(){return a.defaultOptions};a.defaultPlotOptions=a.defaultOptions.plotOptions;a.time=new a.Time(D(a.defaultOptions.global,a.defaultOptions.time));a.dateFormat=function(D,q,n){return a.time.dateFormat(D,q,n)}})(L);(function(a){var C=a.correctFloat,D=a.defined,E=a.destroyObjectProperties,q=a.fireEvent,n=a.isNumber,f=a.merge,r=a.pick,A=a.deg2rad;a.Tick=function(a,f,p,c){this.axis=a;this.pos=f;this.type=p||\\\"\\\";this.isNewLabel=this.isNew=\\n!0;p||c||this.addLabel()};a.Tick.prototype={addLabel:function(){var a=this.axis,n=a.options,p=a.chart,c=a.categories,d=a.names,m=this.pos,k=n.labels,b=a.tickPositions,e=m===b[0],h=m===b[b.length-1],d=c?r(c[m],d[m],m):m,c=this.label,b=b.info,u;a.isDatetimeAxis&&b&&(u=n.dateTimeLabelFormats[b.higherRanks[m]||b.unitName]);this.isFirst=e;this.isLast=h;n=a.labelFormatter.call({axis:a,chart:p,isFirst:e,isLast:h,dateTimeLabelFormat:u,value:a.isLog?C(a.lin2log(d)):d,pos:m});if(D(c))c&&c.attr({text:n});else{if(this.label=\\nc=D(n)&&k.enabled?p.renderer.text(n,0,0,k.useHTML).css(f(k.style)).add(a.labelGroup):null)c.textPxLength=c.getBBox().width;this.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?\\\"height\\\":\\\"width\\\"]:0},handleOverflow:function(a){var f=this.axis,p=f.options.labels,c=a.x,d=f.chart.chartWidth,m=f.chart.spacing,k=r(f.labelLeft,Math.min(f.pos,m[3])),m=r(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,d-m[1])),b=this.label,e=this.rotation,h={left:0,center:.5,right:1}[f.labelAlign||\\nb.attr(\\\"align\\\")],u=b.getBBox().width,t=f.getSlotWidth(this),z=t,I=1,v,G={};if(e||!1===p.overflow)0>e&&c-h*um&&(v=Math.round((d-c)/Math.cos(e*A)));else if(d=c+(1-h)*u,c-h*um&&(z=m-a.x+z*h,I=-1),z=Math.min(t,z),zz||f.autoRotation&&(b.styles||{}).width)v=z;v&&(G.width=v,(p.style||{}).textOverflow||(G.textOverflow=\\\"ellipsis\\\"),b.css(G))},getPosition:function(f,n,p,c){var d=\\nthis.axis,m=d.chart,k=c&&m.oldChartHeight||m.chartHeight;f={x:f?a.correctFloat(d.translate(n+p,null,null,c)+d.transB):d.left+d.offset+(d.opposite?(c&&m.oldChartWidth||m.chartWidth)-d.right-d.left:0),y:f?k-d.bottom+d.offset-(d.opposite?d.height:0):a.correctFloat(k-d.translate(n+p,null,null,c)-d.transB)};q(this,\\\"afterGetPosition\\\",{pos:f});return f},getLabelPosition:function(a,f,p,c,d,m,k,b){var e=this.axis,h=e.transA,u=e.reversed,t=e.staggerLines,z=e.tickRotCorr||{x:0,y:0},I=d.y,v=c||e.reserveSpaceDefault?\\n0:-e.labelOffset*(\\\"center\\\"===e.labelAlign?.5:1),G={};D(I)||(I=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?z.y+8:Math.cos(p.rotation*A)*(z.y-p.getBBox(!1,0).height/2));a=a+d.x+v+z.x-(m&&c?m*h*(u?-1:1):0);f=f+I-(m&&!c?m*h*(u?1:-1):0);t&&(p=k/(b||1)%t,e.opposite&&(p=t-p-1),f+=e.labelOffset/t*p);G.x=a;G.y=Math.round(f);q(this,\\\"afterGetLabelPosition\\\",{pos:G});return G},getMarkPath:function(a,f,p,c,d,m){return m.crispLine([\\\"M\\\",a,f,\\\"L\\\",a+(d?0:-p),f+(d?p:0)],c)},renderGridLine:function(a,f,p){var c=\\nthis.axis,d=c.options,m=this.gridLine,k={},b=this.pos,e=this.type,h=c.tickmarkOffset,u=c.chart.renderer,t=e?e+\\\"Grid\\\":\\\"grid\\\",z=d[t+\\\"LineWidth\\\"],I=d[t+\\\"LineColor\\\"],d=d[t+\\\"LineDashStyle\\\"];m||(k.stroke=I,k[\\\"stroke-width\\\"]=z,d&&(k.dashstyle=d),e||(k.zIndex=1),a&&(k.opacity=0),this.gridLine=m=u.path().attr(k).addClass(\\\"highcharts-\\\"+(e?e+\\\"-\\\":\\\"\\\")+\\\"grid-line\\\").add(c.gridGroup));if(!a&&m&&(a=c.getPlotLinePath(b+h,m.strokeWidth()*p,a,!0)))m[this.isNew?\\\"attr\\\":\\\"animate\\\"]({d:a,opacity:f})},renderMark:function(a,\\nf,p){var c=this.axis,d=c.options,m=c.chart.renderer,k=this.type,b=k?k+\\\"Tick\\\":\\\"tick\\\",e=c.tickSize(b),h=this.mark,u=!h,t=a.x;a=a.y;var z=r(d[b+\\\"Width\\\"],!k&&c.isXAxis?1:0),d=d[b+\\\"Color\\\"];e&&(c.opposite&&(e[0]=-e[0]),u&&(this.mark=h=m.path().addClass(\\\"highcharts-\\\"+(k?k+\\\"-\\\":\\\"\\\")+\\\"tick\\\").add(c.axisGroup),h.attr({stroke:d,\\\"stroke-width\\\":z})),h[u?\\\"attr\\\":\\\"animate\\\"]({d:this.getMarkPath(t,a,e[0],h.strokeWidth()*p,c.horiz,m),opacity:f}))},renderLabel:function(a,f,p,c){var d=this.axis,m=d.horiz,k=d.options,b=this.label,\\ne=k.labels,h=e.step,d=d.tickmarkOffset,u=!0,t=a.x;a=a.y;b&&n(t)&&(b.xy=a=this.getLabelPosition(t,a,b,m,e,d,c,h),this.isFirst&&!this.isLast&&!r(k.showFirstLabel,1)||this.isLast&&!this.isFirst&&!r(k.showLastLabel,1)?u=!1:!m||e.step||e.rotation||f||0===p||this.handleOverflow(a),h&&c%h&&(u=!1),u&&n(a.y)?(a.opacity=p,b[this.isNewLabel?\\\"attr\\\":\\\"animate\\\"](a),this.isNewLabel=!1):(b.attr(\\\"y\\\",-9999),this.isNewLabel=!0))},render:function(f,n,p){var c=this.axis,d=c.horiz,m=this.getPosition(d,this.pos,c.tickmarkOffset,\\nn),k=m.x,b=m.y,c=d&&k===c.pos+c.len||!d&&b===c.pos?-1:1;p=r(p,1);this.isActive=!0;this.renderGridLine(n,p,c);this.renderMark(m,p,c);this.renderLabel(m,n,p,f);this.isNew=!1;a.fireEvent(this,\\\"afterRender\\\")},destroy:function(){E(this,this.axis)}}})(L);var ea=function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.color,f=a.correctFloat,r=a.defaultOptions,A=a.defined,w=a.deg2rad,y=a.destroyObjectProperties,p=a.each,c=a.extend,d=a.fireEvent,m=a.format,k=a.getMagnitude,b=a.grep,e=a.inArray,\\nh=a.isArray,u=a.isNumber,t=a.isString,z=a.merge,I=a.normalizeTickInterval,v=a.objectEach,G=a.pick,l=a.removeEvent,H=a.splat,K=a.syncTimeout,F=a.Tick,B=function(){this.init.apply(this,arguments)};a.extend(B.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:\\\"%H:%M:%S.%L\\\",second:\\\"%H:%M:%S\\\",minute:\\\"%H:%M\\\",hour:\\\"%H:%M\\\",day:\\\"%e. %b\\\",week:\\\"%e. %b\\\",month:\\\"%b '%y\\\",year:\\\"%Y\\\"},endOnTick:!1,labels:{enabled:!0,style:{color:\\\"#666666\\\",cursor:\\\"default\\\",fontSize:\\\"11px\\\"},x:0},maxPadding:.01,minorTickLength:2,\\nminorTickPosition:\\\"outside\\\",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:\\\"between\\\",tickPixelInterval:100,tickPosition:\\\"outside\\\",title:{align:\\\"middle\\\",style:{color:\\\"#666666\\\"}},type:\\\"linear\\\",minorGridLineColor:\\\"#f2f2f2\\\",minorGridLineWidth:1,minorTickColor:\\\"#999999\\\",lineColor:\\\"#ccd6eb\\\",lineWidth:1,gridLineColor:\\\"#e6e6e6\\\",tickColor:\\\"#ccd6eb\\\"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,\\ntitle:{rotation:270,text:\\\"Values\\\"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return a.numberFormat(this.total,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"#000000\\\",textOutline:\\\"1px contrast\\\"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},\\ntitle:{rotation:0}},init:function(a,x){var g=x.isX,b=this;b.chart=a;b.horiz=a.inverted&&!b.isZAxis?!g:g;b.isXAxis=g;b.coll=b.coll||(g?\\\"xAxis\\\":\\\"yAxis\\\");d(this,\\\"init\\\",{userOptions:x});b.opposite=x.opposite;b.side=x.side||(b.horiz?b.opposite?0:2:b.opposite?1:3);b.setOptions(x);var c=this.options,l=c.type;b.labelFormatter=c.labels.formatter||b.defaultLabelFormatter;b.userOptions=x;b.minPixelPadding=0;b.reversed=c.reversed;b.visible=!1!==c.visible;b.zoomEnabled=!1!==c.zoomEnabled;b.hasNames=\\\"category\\\"===\\nl||!0===c.categories;b.categories=c.categories||b.hasNames;b.names||(b.names=[],b.names.keys={});b.plotLinesAndBandsGroups={};b.isLog=\\\"logarithmic\\\"===l;b.isDatetimeAxis=\\\"datetime\\\"===l;b.positiveValuesOnly=b.isLog&&!b.allowNegativeLog;b.isLinked=A(c.linkedTo);b.ticks={};b.labelEdge=[];b.minorTicks={};b.plotLinesAndBands=[];b.alternateBands={};b.len=0;b.minRange=b.userMinRange=c.minRange||c.maxZoom;b.range=c.range;b.offset=c.offset||0;b.stacks={};b.oldStacks={};b.stacksTouched=0;b.max=null;b.min=null;\\nb.crosshair=G(c.crosshair,H(a.options.tooltip.crosshairs)[g?0:1],!1);x=b.options.events;-1===e(b,a.axes)&&(g?a.axes.splice(a.xAxis.length,0,b):a.axes.push(b),a[b.coll].push(b));b.series=b.series||[];a.inverted&&!b.isZAxis&&g&&void 0===b.reversed&&(b.reversed=!0);v(x,function(a,g){C(b,g,a)});b.lin2log=c.linearToLogConverter||b.lin2log;b.isLog&&(b.val2lin=b.log2lin,b.lin2val=b.lin2log);d(this,\\\"afterInit\\\")},setOptions:function(a){this.options=z(this.defaultOptions,\\\"yAxis\\\"===this.coll&&this.defaultYAxisOptions,\\n[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],z(r[this.coll],a));d(this,\\\"afterSetOptions\\\",{userOptions:a})},defaultLabelFormatter:function(){var g=this.axis,b=this.value,c=g.chart.time,e=g.categories,l=this.dateTimeLabelFormat,h=r.lang,k=h.numericSymbols,h=h.numericSymbolMagnitude||1E3,B=k&&k.length,d,u=g.options.labels.format,g=g.isLog?Math.abs(b):g.tickInterval;if(u)d=m(u,this,c);else if(e)d=b;else if(l)d=c.dateFormat(l,\\nb);else if(B&&1E3<=g)for(;B--&&void 0===d;)c=Math.pow(h,B+1),g>=c&&0===10*b%c&&null!==k[B]&&0!==b&&(d=a.numberFormat(b/c,-1)+k[B]);void 0===d&&(d=1E4<=Math.abs(b)?a.numberFormat(b,-1):a.numberFormat(b,-1,void 0,\\\"\\\"));return d},getSeriesExtremes:function(){var a=this,x=a.chart;d(this,\\\"getSeriesExtremes\\\",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();p(a.series,function(g){if(g.visible||!x.options.chart.ignoreHiddenSeries){var c=\\ng.options,e=c.threshold,l;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis)c=g.xData,c.length&&(g=q(c),l=E(c),u(g)||g instanceof Date||(c=b(c,u),g=q(c),l=E(c)),c.length&&(a.dataMin=Math.min(G(a.dataMin,c[0],g),g),a.dataMax=Math.max(G(a.dataMax,c[0],l),l)));else if(g.getExtremes(),l=g.dataMax,g=g.dataMin,A(g)&&A(l)&&(a.dataMin=Math.min(G(a.dataMin,g),g),a.dataMax=Math.max(G(a.dataMax,l),l)),A(e)&&(a.threshold=e),!c.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});\\nd(this,\\\"afterGetSeriesExtremes\\\")},translate:function(a,b,c,e,l,h){var g=this.linkedParent||this,x=1,k=0,d=e?g.oldTransA:g.transA;e=e?g.oldMin:g.min;var B=g.minPixelPadding;l=(g.isOrdinal||g.isBroken||g.isLog&&l)&&g.lin2val;d||(d=g.transA);c&&(x*=-1,k=g.len);g.reversed&&(x*=-1,k-=x*(g.sector||g.len));b?(a=(a*x+k-B)/d+e,l&&(a=g.lin2val(a))):(l&&(a=g.val2lin(a)),a=u(e)?x*(a-e)*d+k+x*B+(u(h)?d*h:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},\\ntoValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a,b,c,e,l){var g=this.chart,x=this.left,h=this.top,k,d,B=c&&g.oldChartHeight||g.chartHeight,M=c&&g.oldChartWidth||g.chartWidth,t;k=this.transB;var F=function(a,g,b){if(ab)e?a=Math.min(Math.max(g,a),b):t=!0;return a};l=G(l,this.translate(a,null,null,c));l=Math.min(Math.max(-1E5,l),1E5);a=c=Math.round(l+k);k=d=Math.round(B-l-k);u(l)?this.horiz?(k=h,d=B-this.bottom,a=c=F(a,x,x+this.width)):\\n(a=x,c=M-this.right,k=d=F(k,h,h+this.height)):(t=!0,e=!1);return t&&!e?null:g.renderer.crispLine([\\\"M\\\",a,k,\\\"L\\\",c,d],b||1)},getLinearTickPositions:function(a,b,c){var g,x=f(Math.floor(b/a)*a);c=f(Math.ceil(c/a)*a);var e=[],l;f(x+a)===x&&(l=20);if(this.single)return[b];for(b=x;b<=c;){e.push(b);b=f(b+a,l);if(b===g)break;g=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?G(a.minorTickInterval,\\\"auto\\\"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=\\nthis,b=a.options,c=a.tickPositions,e=a.minorTickInterval,l=[],h=a.pointRangePadding||0,k=a.min-h,h=a.max+h,d=h-k;if(d&&d/e=this.minRange,t=this.minRange,e=(t-c+b)/2,e=[b-e,G(a.min,b-e)],l&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),b=E(e),c=[b+t,\\nG(a.max,b+t)],l&&(c[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),c=q(c),c-b=H?(y=H,z=0):b.dataMax<=H&&(r=H,F=0)),b.min=G(w,y,b.dataMin),b.max=G(q,r,b.dataMax));l&&(b.positiveValuesOnly&&!g&&0>=Math.min(b.min,G(b.dataMin,b.min))&&a.error(10,1),b.min=\\nf(b.log2lin(b.min),15),b.max=f(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=w=Math.max(b.dataMin,b.minFromRange()),b.userMax=q=b.max,b.range=null);d(b,\\\"foundExtremes\\\");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(K||b.axisPointRange||b.usePercentage||t)&&A(b.min)&&A(b.max)&&(c=b.max-b.min)&&(!A(w)&&z&&(b.min-=c*z),!A(q)&&F&&(b.max+=c*F));u(e.softMin)&&!u(b.userMin)&&(b.min=Math.min(b.min,e.softMin));u(e.softMax)&&!u(b.userMax)&&(b.max=Math.max(b.max,e.softMax));u(e.floor)&&\\n(b.min=Math.max(b.min,e.floor));u(e.ceiling)&&(b.max=Math.min(b.max,e.ceiling));n&&A(b.dataMin)&&(H=H||0,!A(w)&&b.min=H?b.min=H:!A(q)&&b.max>H&&b.dataMax<=H&&(b.max=H));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:t&&!v&&m===b.linkedParent.options.tickPixelInterval?v=b.linkedParent.tickInterval:G(v,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,K?1:(b.max-b.min)*m/Math.max(b.len,m));B&&!g&&p(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==\\nb.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!v&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));g=G(e.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!v&&b.tickIntervalb.tickInterval&&1E3b.max)),!!this.tickAmount));\\nthis.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b,c=a.tickPositions;b=this.getMinorTickInterval();var e=a.tickPositioner,l=a.startOnTick,h=a.endOnTick;this.tickmarkOffset=this.categories&&\\\"between\\\"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval=\\\"auto\\\"===b&&this.tickInterval?this.tickInterval/5:b;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);\\nthis.tickPositions=b=c&&c.slice();!b&&(b=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),b.length>this.len&&(b=[b[0],b.pop()],b[0]===b[1]&&(b.length=1)),this.tickPositions=b,e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=\\nb=e);this.paddedTicks=b.slice(0);this.trimTicks(b,l,h);this.isLinked||(this.single&&2>b.length&&(this.min-=.5,this.max+=.5),c||e||this.adjustTickAmount());d(this,\\\"afterSetTickPositions\\\")},trimTicks:function(a,b,c){var g=a[0],e=a[a.length-1],l=this.minPointOffset||0;if(!this.isLinked){if(b&&-Infinity!==g)this.min=g;else for(;this.min-l>a[0];)a.shift();if(c)this.max=e;else for(;this.max+lb&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,e=this.finalTickAmt,l=b&&b.length,h=G(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(lc&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(a=c=b.length;a--;)(3===e&&\\n1===a%2||2>=e&&0e&&(a=e)),A(c)&&(be&&(b=e))),this.displayBtn=void 0!==a||void 0!==b,this.setExtremes(a,b,!1,void 0,{trigger:\\\"zoom\\\"});return!0},setAxisSize:function(){var b=this.chart,c=this.options,e=c.offsets||[0,0,0,0],l=this.horiz,h=this.width=Math.round(a.relativeLength(G(c.width,b.plotWidth-e[3]+e[1]),b.plotWidth)),k=this.height=Math.round(a.relativeLength(G(c.height,b.plotHeight-\\ne[0]+e[2]),b.plotHeight)),d=this.top=Math.round(a.relativeLength(G(c.top,b.plotTop+e[0]),b.plotHeight,b.plotTop)),c=this.left=Math.round(a.relativeLength(G(c.left,b.plotLeft+e[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-k-d;this.right=b.chartWidth-h-c;this.len=Math.max(l?h:k,0);this.pos=l?c:d},getExtremes:function(){var a=this.isLog;return{min:a?f(this.lin2log(this.min)):this.min,max:a?f(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},\\ngetThreshold:function(a){var b=this.isLog,g=b?this.lin2log(this.min):this.min,b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=g:Infinity===a?a=b:g>a?a=g:ba?\\\"right\\\":195a?\\\"left\\\":\\\"center\\\"},tickSize:function(a){var b=this.options,g=b[a+\\\"Length\\\"],c=G(b[a+\\\"Width\\\"],\\\"tick\\\"===a&&this.isXAxis?1:0);if(c&&g)return\\\"inside\\\"===b[a+\\\"Position\\\"]&&(g=-g),[g,c]},labelMetrics:function(){var a=\\nthis.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var a=this.options.labels,b=this.horiz,c=this.tickInterval,e=c,l=this.len/(((this.categories?1:0)+this.max-this.min)/c),h,k=a.rotation,d=this.labelMetrics(),B,u=Number.MAX_VALUE,t,F=function(a){a/=l||1;a=1=a)B=F(Math.abs(d.h/Math.sin(w*a))),b=B+Math.abs(a/360),b(c.step||0)&&!c.rotation&&(this.staggerLines||1)*this.len/e||!b&&(c.style&&parseInt(c.style.width,10)||l&&l-a.spacing[3]||\\n.33*a.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,c=this.tickPositions,e=this.ticks,l=this.options.labels,h=l&&l.style||{},k=this.horiz,d=this.getSlotWidth(),B=Math.max(1,Math.round(d-2*(l.padding||5))),u={},F=this.labelMetrics(),z=l.style&&l.style.textOverflow,v,m,K=0,H;t(l.rotation)||(u.rotation=l.rotation||0);p(c,function(a){(a=e[a])&&a.label&&a.label.textPxLength>K&&(K=a.label.textPxLength)});this.maxLabelLength=K;if(this.autoRotation)K>B&&K>F.h?u.rotation=this.labelRotation:\\nthis.labelRotation=0;else if(d&&(v=B,!z))for(m=\\\"clip\\\",B=c.length;!k&&B--;)if(H=c[B],H=e[H].label)H.styles&&\\\"ellipsis\\\"===H.styles.textOverflow?H.css({textOverflow:\\\"clip\\\"}):H.textPxLength>d&&H.css({width:d+\\\"px\\\"}),H.getBBox().height>this.len/c.length-(F.h-F.f)&&(H.specificTextOverflow=\\\"ellipsis\\\");u.rotation&&(v=K>.5*a.chartHeight?.33*a.chartHeight:a.chartHeight,z||(m=\\\"ellipsis\\\"));if(this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation))u.align=this.labelAlign;p(c,function(a){var b=(a=e[a])&&\\na.label,g=h.width,c={};b&&(b.attr(u),v&&!g&&\\\"nowrap\\\"!==h.whiteSpace&&(v=this.min&&a<=this.max)c[a]||(c[a]=new F(this,a)),e&&c[a].isNew&&c[a].render(b,!0,.1),c[a].render(b)},render:function(){var b=this,c=b.chart,e=b.options,l=b.isLog,h=b.isLinked,k=b.tickPositions,B=b.axisTitle,t=b.ticks,z=b.minorTicks,m=b.alternateBands,H=e.stackLabels,G=e.alternateGridColor,f=b.tickmarkOffset,I=b.axisLine,n=b.showAxis,y=D(c.renderer.globalAnimation),w,r;b.labelEdge.length=0;b.overlap=!1;p([t,z,m],function(a){v(a,function(a){a.isActive=\\n!1})});if(b.hasData()||h)b.minorTickInterval&&!b.categories&&p(b.getMinorTickPositions(),function(a){b.renderMinorTick(a)}),k.length&&(p(k,function(a,c){b.renderTick(a,c)}),f&&(0===b.min||b.single)&&(t[-1]||(t[-1]=new F(b,-1,null,!0)),t[-1].render(-1))),G&&p(k,function(g,e){r=void 0!==k[e+1]?k[e+1]+f:b.max-f;0===e%2&&gr&&(!w||b<=A)&&void 0!==b&&c.push(b),b>A&&(e=!0),b=k;else r=this.lin2log(r),A=this.lin2log(A),a=w?this.getMinorTickInterval():f.tickInterval,a=n(\\\"auto\\\"===a?null:a,this._minorAutoInterval,f.tickPixelInterval/(w?5:1)*(A-r)/((w?p/this.tickPositions.length:p)||1)),a=q(a,null,D(a)),c=E(this.getLinearTickPositions(a,r,A),this.log2lin),w||(this._minorAutoInterval=a/5);w||(this.tickInterval=a);return c};C.prototype.log2lin=function(a){return Math.log(a)/\\nMath.LN10};C.prototype.lin2log=function(a){return Math.pow(10,a)}})(L);(function(a,C){var D=a.arrayMax,E=a.arrayMin,q=a.defined,n=a.destroyObjectProperties,f=a.each,r=a.erase,A=a.merge,w=a.pick;a.PlotLineOrBand=function(a,p){this.axis=a;p&&(this.options=p,this.id=p.id)};a.PlotLineOrBand.prototype={render:function(){var f=this,p=f.axis,c=p.horiz,d=f.options,m=d.label,k=f.label,b=d.to,e=d.from,h=d.value,u=q(e)&&q(b),t=q(h),z=f.svgElem,I=!z,v=[],G=d.color,l=w(d.zIndex,0),H=d.events,v={\\\"class\\\":\\\"highcharts-plot-\\\"+\\n(u?\\\"band \\\":\\\"line \\\")+(d.className||\\\"\\\")},K={},F=p.chart.renderer,B=u?\\\"bands\\\":\\\"lines\\\";p.isLog&&(e=p.log2lin(e),b=p.log2lin(b),h=p.log2lin(h));t?(v.stroke=G,v[\\\"stroke-width\\\"]=d.width,d.dashStyle&&(v.dashstyle=d.dashStyle)):u&&(G&&(v.fill=G),d.borderWidth&&(v.stroke=d.borderColor,v[\\\"stroke-width\\\"]=d.borderWidth));K.zIndex=l;B+=\\\"-\\\"+l;(G=p.plotLinesAndBandsGroups[B])||(p.plotLinesAndBandsGroups[B]=G=F.g(\\\"plot-\\\"+B).attr(K).add());I&&(f.svgElem=z=F.path().attr(v).add(G));if(t)v=p.getPlotLinePath(h,z.strokeWidth());\\nelse if(u)v=p.getPlotBandPath(e,b,d);else return;I&&v&&v.length?(z.attr({d:v}),H&&a.objectEach(H,function(a,b){z.on(b,function(a){H[b].apply(f,[a])})})):z&&(v?(z.show(),z.animate({d:v})):(z.hide(),k&&(f.label=k=k.destroy())));m&&q(m.text)&&v&&v.length&&0this.max&&p>this.max;if(d&&c)for(a&&(e=d.toString()===c.toString(),b=0),a=0;au-h?u:u-h);else if(t)e[a]=Math.max(k,l+h+g>c?l:l+h);else return!1},F=function(a,c,g,l){var h;lc-b?h=!1:e[a]=lc-g/2?c-g-2:l-g/2;return h},B=function(a){var b=G;G=l;l=b;u=a},g=function(){!1!==K.apply(0,G)?!1!==F.apply(0,l)||u||(B(!0),g()):u?e.x=e.y=0:(B(!0),g())};(c.inverted||1H&&(h=!1);a=(c.series&&c.series.yAxis&&c.series.yAxis.pos)+(c.plotY||0);a-=b.plotTop;k.push({target:c.isHeader?b.plotHeight+t:a,rank:c.isHeader?1:0,size:v.tt.getBBox().height+1,point:c,x:H,tt:l})}});this.cleanSplit();\\na.distribute(k,b.plotHeight+t);D(k,function(a){var c=a.point,e=c.series;a.tt.attr({visibility:void 0===a.pos?\\\"hidden\\\":\\\"inherit\\\",x:h||c.isHeader?a.x:c.plotX+b.plotLeft+A(u.distance,16),y:a.pos+b.plotTop,anchorX:c.isHeader?c.plotX+b.plotLeft:c.plotX+e.xAxis.pos,anchorY:c.isHeader?a.pos+b.plotTop-15:c.plotY+e.yAxis.pos})})},updatePosition:function(a){var c=this.chart,m=this.getLabel(),k=(this.options.positioner||this.getPosition).call(this,m.width,m.height,a),b=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;\\nvar e;this.outside&&(e=(this.options.borderWidth||0)+2*this.distance,this.renderer.setSize(m.width+e,m.height+e,!1),b+=c.pointer.chartPosition.left-k.x,a+=c.pointer.chartPosition.top-k.y);this.move(Math.round(k.x),Math.round(k.y||0),b,a)},getDateFormat:function(a,d,m,k){var b=this.chart.time,c=b.dateFormat(\\\"%m-%d %H:%M:%S.%L\\\",d),h,u,t={millisecond:15,second:12,minute:9,hour:6,day:3},z=\\\"millisecond\\\";for(u in p){if(a===p.week&&+b.dateFormat(\\\"%w\\\",d)===m&&\\\"00:00:00.000\\\"===c.substr(6)){u=\\\"week\\\";break}if(p[u]>\\na){u=z;break}if(t[u]&&c.substr(t[u])!==\\\"01-01 00:00:00.000\\\".substr(t[u]))break;\\\"week\\\"!==u&&(z=u)}u&&(h=k[u]);return h},getXDateFormat:function(a,d,m){d=d.dateTimeLabelFormats;var c=m&&m.closestPointRange;return(c?this.getDateFormat(c,a.x,m.options.startOfWeek,d):d.day)||d.year},tooltipFooterHeaderFormatter:function(a,d){d=d?\\\"footer\\\":\\\"header\\\";var c=a.series,k=c.tooltipOptions,b=k.xDateFormat,e=c.xAxis,h=e&&\\\"datetime\\\"===e.options.type&&n(a.key),u=k[d+\\\"Format\\\"];h&&!b&&(b=this.getXDateFormat(a,k,e));\\nh&&b&&D(a.point&&a.point.tooltipDateKeys||[\\\"key\\\"],function(a){u=u.replace(\\\"{point.\\\"+a+\\\"}\\\",\\\"{point.\\\"+a+\\\":\\\"+b+\\\"}\\\")});return q(u,{point:a,series:c},this.chart.time)},bodyFormatter:function(a){return f(a,function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||\\\"point\\\")+\\\"Formatter\\\"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||\\\"point\\\")+\\\"Format\\\"])})}}})(L);(function(a){var C=a.addEvent,D=a.attr,E=a.charts,q=a.color,n=a.css,f=a.defined,r=a.each,A=a.extend,w=a.find,y=\\na.fireEvent,p=a.isNumber,c=a.isObject,d=a.offset,m=a.pick,k=a.splat,b=a.Tooltip;a.Pointer=function(a,b){this.init(a,b)};a.Pointer.prototype={init:function(a,c){this.options=c;this.chart=a;this.runChartClick=c.chart.events&&!!c.chart.events.click;this.pinchDown=[];this.lastValidTouch={};b&&(a.tooltip=new b(a,c.tooltip),this.followTouchMove=m(c.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,e=c.zoomType||\\\"\\\",b=b.inverted;/touch/.test(a.type)&&\\n(e=m(c.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=e=/y/.test(e);this.zoomHor=a&&!b||e&&b;this.zoomVert=e&&!b||a&&b;this.hasZoom=a||e},normalize:function(a,b){var c;c=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a;b||(this.chartPosition=b=d(this.chart.container));return A(a,{chartX:Math.round(c.pageX-b.left),chartY:Math.round(c.pageY-b.top)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};r(this.chart.axes,function(c){b[c.isXAxis?\\\"xAxis\\\":\\\"yAxis\\\"].push({axis:c,value:c.toValue(a[c.horiz?\\n\\\"chartX\\\":\\\"chartY\\\"])})});return b},findNearestKDPoint:function(a,b,k){var e;r(a,function(a){var h=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf(\\\"y\\\");a=a.searchPoint(k,h);if((h=c(a,!0))&&!(h=!c(e,!0)))var h=e.distX-a.distX,d=e.dist-a.dist,u=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex),h=0<(0!==h&&b?h:0!==d?d:0!==u?u:e.series.index>a.series.index?-1:1);h&&(e=a)});return e},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;\\nreturn b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,e=c.xAxis,c=c.yAxis,h=m(a.clientX,a.plotX),k=a.shapeArgs;if(e&&c)return b?{chartX:e.len+e.pos-h,chartY:c.len+c.pos-a.plotY}:{chartX:h+e.pos,chartY:a.plotY+c.pos};if(k&&k.x&&k.y)return{chartX:k.x,chartY:k.y}},getHoverData:function(b,h,k,d,z,p,v){var e,l=[],u=v&&v.isBoosting;d=!(!d||!b);v=h&&!h.stickyTracking?[h]:a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&a.stickyTracking});h=(e=\\nd?b:this.findNearestKDPoint(v,z,p))&&e.series;e&&(z&&!h.noSharedTooltip?(v=a.grep(k,function(a){return a.visible&&!(!z&&a.directTouch)&&m(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),r(v,function(a){var b=w(a.points,function(a){return a.x===e.x&&!a.isNull});c(b)&&(u&&(b=a.getPoint(b)),l.push(b))})):l.push(e));return{hoverPoint:e,hoverSeries:h,hoverPoints:l}},runPointActions:function(b,c){var e=this.chart,h=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,k=h?h.shared:!1,d=c||e.hoverPoint,\\nv=d&&d.series||e.hoverSeries,v=this.getHoverData(d,v,e.series,!!c||v&&v.directTouch&&this.isDirectTouch,k,b,{isBoosting:e.isBoosting}),p,d=v.hoverPoint;p=v.hoverPoints;c=(v=v.hoverSeries)&&v.tooltipOptions.followPointer;k=k&&v&&!v.noSharedTooltip;if(d&&(d!==e.hoverPoint||h&&h.isHidden)){r(e.hoverPoints||[],function(b){-1===a.inArray(b,p)&&b.setState()});r(p||[],function(a){a.setState(\\\"hover\\\")});if(e.hoverSeries!==v)v.onMouseOver();e.hoverPoint&&e.hoverPoint.firePointEvent(\\\"mouseOut\\\");if(!d.series)return;\\nd.firePointEvent(\\\"mouseOver\\\");e.hoverPoints=p;e.hoverPoint=d;h&&h.refresh(k?p:d,b)}else c&&h&&!h.isHidden&&(d=h.getAnchor([{}],b),h.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=C(e.container.ownerDocument,\\\"mousemove\\\",function(b){var c=E[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}));r(e.axes,function(c){var e=m(c.crosshair.snap,!0),l=e?a.find(p,function(a){return a.series[c.coll]===c}):void 0;l||!e?c.drawCrosshair(b,l):c.hideCrosshair()})},reset:function(a,\\nb){var c=this.chart,e=c.hoverSeries,h=c.hoverPoint,d=c.hoverPoints,m=c.tooltip,p=m&&m.shared?d:h;a&&p&&r(k(p),function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)m&&p&&(m.refresh(p),h&&(h.setState(h.state,!0),r(c.axes,function(a){a.crosshair&&a.drawCrosshair(null,h)})));else{if(h)h.onMouseOut();d&&r(d,function(a){a.setState()});if(e)e.onMouseOut();m&&m.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());r(c.axes,function(a){a.hideCrosshair()});this.hoverX=c.hoverPoints=\\nc.hoverPoint=null}},scaleGroups:function(a,b){var c=this.chart,e;r(c.series,function(h){e=a||h.getPlotBox();h.xAxis&&h.xAxis.zoomEnabled&&h.group&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(b?c.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))});c.clipRect.attr(b||c.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,\\nc=b.options.chart,e=a.chartX,k=a.chartY,d=this.zoomHor,m=this.zoomVert,p=b.plotLeft,l=b.plotTop,H=b.plotWidth,K=b.plotHeight,F,B=this.selectionMarker,g=this.mouseDownX,x=this.mouseDownY,f=c.panKey&&a[c.panKey+\\\"Key\\\"];B&&B.touch||(ep+H&&(e=p+H),kl+K&&(k=l+K),this.hasDragged=Math.sqrt(Math.pow(g-e,2)+Math.pow(x-k,2)),10l.max&&(f=l.max-z,x=!0);x?(F-=.8*(F-d[b][0]),H||(g-=.8*(g-d[b][1])),n()):d[b]=[F,g];G||(c[b]=I-t,c[u]=z);c=G?1/v:v;p[u]=\\nz;p[b]=f;q[G?a?\\\"scaleY\\\":\\\"scaleX\\\":\\\"scale\\\"+e]=v;q[\\\"translate\\\"+e]=c*t+(F-c*K)},pinch:function(a){var r=this,w=r.chart,y=r.pinchDown,p=a.touches,c=p.length,d=r.lastValidTouch,m=r.hasZoom,k=r.selectionMarker,b={},e=1===c&&(r.inClass(a.target,\\\"highcharts-tracker\\\")&&w.runTrackerClick||r.runChartClick),h={};1b-6&&k\\nf?this.maxItemWidth:a.itemWidth;d&&this.itemX-c+b>f&&(this.itemX=c,this.itemY+=z+this.lastLineHeight+m,this.lastLineHeight=0);this.lastItemY=z+this.itemY+m;this.lastLineHeight=Math.max(k,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=b:(this.itemY+=z+k+m,this.lastLineHeight=k);this.offsetWidth=v||Math.max((d?this.itemX-c-(a.checkbox?0:p):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];n(this.chart.series,function(b){var c=b&&b.options;b&&y(c.showInLegend,q(c.linkedTo)?\\n!1:void 0,!0)&&(a=a.concat(b.legendItems||(\\\"point\\\"===c.legendType?b.data:b)))});f(this,\\\"afterGetAllItems\\\",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+\\\"tv\\\":a.floating?\\\"\\\":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var c=this.chart,d=this.options,k=this.getAlignment();k&&n([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(e,h){e.test(k)&&!q(a[h])&&(c[A[h]]=Math.max(c[A[h]],\\nc.legend[(h+1)%2?\\\"legendHeight\\\":\\\"legendWidth\\\"]+[1,-1,-1,1][h]*d[h%2?\\\"x\\\":\\\"y\\\"]+y(d.margin,12)+b[h]+(0===h&&void 0!==c.options.title.margin?c.titleOffset+c.options.title.margin:0)))})},proximatePositions:function(){var c=this.chart,b=[],e=\\\"left\\\"===this.options.align;n(this.allItems,function(d){var h,k;h=e;d.xAxis&&d.points&&(d.xAxis.options.reversed&&(h=!h),h=a.find(h?d.points:d.points.slice(0).reverse(),function(b){return a.isNumber(b.plotY)}),k=d.legendGroup.getBBox().height,b.push({target:d.visible?\\nh.plotY-.3*k:c.plotHeight,size:k,item:d}))},this);a.distribute(b,c.plotHeight);n(b,function(a){a.item._legendItemPos[1]=c.plotTop-c.spacing[0]+a.pos})},render:function(){var a=this.chart,b=a.renderer,e=this.group,d,m,t,z=this.box,p=this.options,v=this.padding;this.itemX=v;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;e||(this.group=e=b.g(\\\"legend\\\").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();\\nd=this.getAllItems();c(d,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});p.reversed&&d.reverse();this.allItems=d;this.display=m=!!d.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;n(d,this.renderItem,this);n(d,this.layoutItem,this);d=(p.width||this.offsetWidth)+v;t=this.lastItemY+this.lastLineHeight+this.titleHeight;t=this.handleOverflow(t);t+=v;z||(this.box=z=b.rect().addClass(\\\"highcharts-legend-box\\\").attr({r:p.borderRadius}).add(e),\\nz.isNew=!0);z.attr({stroke:p.borderColor,\\\"stroke-width\\\":p.borderWidth||0,fill:p.backgroundColor||\\\"none\\\"}).shadow(p.shadow);0c&&!1!==G.enabled?(this.clipHeight=f=Math.max(c-20-this.titleHeight-p,0),this.currentPage=y(this.currentPage,1),this.fullHeight=a,n(g,function(a,b){var c=a._legendItemPos[1],e=Math.round(a.legendItem.getBBox().height),l=F.length;if(!l||c-F[l-1]>f&&(B||c)!==F[l-1])F.push(B||c),l++;a.pageIx=l-1;B&&(g[b-1].pageIx=l-1);b===g.length-1&&c+e-F[l-1]>f&&(F.push(c),a.pageIx=l);c!==B&&(B=c)}),v||(v=b.clipRect=\\nd.clipRect(0,p,9999,0),b.contentGroup.clip(v)),x(f),K||(this.nav=K=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol(\\\"triangle\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(-1,l)}).add(K),this.pager=d.text(\\\"\\\",15,10).addClass(\\\"highcharts-legend-navigation\\\").css(G.style).add(K),this.down=d.symbol(\\\"triangle-down\\\",0,0,H,H).on(\\\"click\\\",function(){b.scroll(1,l)}).add(K)),b.scroll(0),a=c):K&&(x(),this.nav=K.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var c=\\nthis.pages,d=c.length;a=this.currentPage+a;var k=this.clipHeight,m=this.options.navigation,z=this.pager,f=this.padding;a>d&&(a=d);0b&&(d=typeof p[0],\\\"string\\\"===d?c.name=p[0]:\\\"number\\\"===d&&(c.x=p[0]),e++);h=m.value;)m=c[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=m&&m.color&&!this.options.color?m.color:this.nonZonedColor;return m},destroy:function(){var a=this.series.chart,c=a.hoverPoints,d;a.pointCount--;c&&(this.setState(),q(c,this),c.length||(a.hoverPoints=null));if(this===a.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel)y(this),this.destroyElements();this.legendItem&&\\na.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(){for(var a=[\\\"graphic\\\",\\\"dataLabel\\\",\\\"dataLabelUpper\\\",\\\"connector\\\",\\\"shadowGroup\\\"],c,d=6;d--;)c=a[d],this[c]&&(this[c]=this[c].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var c=this.series,d=c.tooltipOptions,\\nm=w(d.valueDecimals,\\\"\\\"),k=d.valuePrefix||\\\"\\\",b=d.valueSuffix||\\\"\\\";D(c.pointArrayMap||[\\\"y\\\"],function(c){c=\\\"{point.\\\"+c;if(k||b)a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),k+c+\\\"}\\\"+b);a=a.replace(RegExp(c+\\\"}\\\",\\\"g\\\"),c+\\\":,.\\\"+m+\\\"f}\\\")});return f(a,{point:this,series:this.series},c.chart.time)},firePointEvent:function(a,c,d){var m=this,k=this.series.options;(k.point.events[a]||m.options&&m.options.events&&m.options.events[a])&&this.importEvents();\\\"click\\\"===a&&k.allowPointSelect&&(d=function(a){m.select&&m.select(null,a.ctrlKey||\\na.metaKey||a.shiftKey)});n(this,a,c,d)},visible:!0}})(L);(function(a){var C=a.addEvent,D=a.animObject,E=a.arrayMax,q=a.arrayMin,n=a.correctFloat,f=a.defaultOptions,r=a.defaultPlotOptions,A=a.defined,w=a.each,y=a.erase,p=a.extend,c=a.fireEvent,d=a.grep,m=a.isArray,k=a.isNumber,b=a.isString,e=a.merge,h=a.objectEach,u=a.pick,t=a.removeEvent,z=a.splat,I=a.SVGElement,v=a.syncTimeout,G=a.win;a.Series=a.seriesType(\\\"line\\\",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},\\nmarker:{lineWidth:0,lineColor:\\\"#ffffff\\\",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:\\\"#cccccc\\\",lineColor:\\\"#000000\\\",lineWidth:2}}},point:{events:{}},dataLabels:{align:\\\"center\\\",formatter:function(){return null===this.y?\\\"\\\":a.numberFormat(this.y,-1)},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\",color:\\\"contrast\\\",textOutline:\\\"1px contrast\\\"},verticalAlign:\\\"bottom\\\",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,\\nsoftThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:\\\"x\\\"},{isCartesian:!0,pointClass:a.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\"],colorCounter:0,parallelArrays:[\\\"x\\\",\\\"y\\\"],coll:\\\"series\\\",init:function(a,b){var l=this,e,d=a.series,g;l.chart=a;l.options=b=l.setOptions(b);l.linkedSeries=[];l.bindAxes();p(l,{name:b.name,\\nstate:\\\"\\\",visible:!1!==b.visible,selected:!0===b.selected});e=b.events;h(e,function(a,b){C(l,b,a)});if(e&&e.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;l.getColor();l.getSymbol();w(l.parallelArrays,function(a){l[a+\\\"Data\\\"]=[]});l.setData(b.data,!1);l.isCartesian&&(a.hasCartesianSeries=!0);d.length&&(g=d[d.length-1]);l._i=u(g&&g._i,-1)+1;a.orderSeries(this.insert(d));c(this,\\\"afterInit\\\")},insert:function(a){var b=this.options.index,c;if(k(b)){for(c=a.length;c--;)if(b>=\\nu(a[c].options.index,a[c]._i)){a.splice(c+1,0,this);break}-1===c&&a.unshift(this);c+=1}else a.push(this);return u(c,a.length-1)},bindAxes:function(){var b=this,c=b.options,e=b.chart,d;w(b.axisTypes||[],function(l){w(e[l],function(a){d=a.options;if(c[l]===d.index||void 0!==c[l]&&c[l]===d.id||void 0===c[l]&&0===d.index)b.insert(a.series),b[l]=a,a.isDirty=!0});b[l]||b.optionalAxis===l||a.error(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,l=arguments,e=k(b)?function(g){var l=\\\"y\\\"===g&&c.toYData?\\nc.toYData(a):a[g];c[g+\\\"Data\\\"][b]=l}:function(a){Array.prototype[b].apply(c[a+\\\"Data\\\"],Array.prototype.slice.call(l,2))};w(c.parallelArrays,e)},autoIncrement:function(){var a=this.options,b=this.xIncrement,c,e=a.pointIntervalUnit,d=this.chart.time,b=u(b,a.pointStart,0);this.pointInterval=c=u(this.pointInterval,a.pointInterval,1);e&&(a=new d.Date(b),\\\"day\\\"===e?d.set(\\\"Date\\\",a,d.get(\\\"Date\\\",a)+c):\\\"month\\\"===e?d.set(\\\"Month\\\",a,d.get(\\\"Month\\\",a)+c):\\\"year\\\"===e&&d.set(\\\"FullYear\\\",a,d.get(\\\"FullYear\\\",a)+c),c=a.getTime()-\\nb);this.xIncrement=b+c;return b},setOptions:function(a){var b=this.chart,l=b.options,d=l.plotOptions,h=(b.userOptions||{}).plotOptions||{},g=d[this.type];this.userOptions=a;b=e(g,d.series,a);this.tooltipOptions=e(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,l.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=u(a.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,\\nthis.tooltipOptions.shared&&!this.noSharedTooltip?!0:b.stickyTracking);null===g.marker&&delete b.marker;this.zoneAxis=b.zoneAxis;a=this.zones=(b.zones||[]).slice();!b.negativeColor&&!b.negativeFillColor||b.zones||a.push({value:b[this.zoneAxis+\\\"Threshold\\\"]||b.threshold||0,className:\\\"highcharts-negative\\\",color:b.negativeColor,fillColor:b.negativeFillColor});a.length&&A(a[a.length-1].value)&&a.push({color:this.color,fillColor:this.fillColor});c(this,\\\"afterSetOptions\\\",{options:b});return b},getName:function(){return this.name||\\n\\\"Series \\\"+(this.index+1)},getCyclic:function(a,b,c){var e,l=this.chart,g=this.userOptions,d=a+\\\"Index\\\",h=a+\\\"Counter\\\",k=c?c.length:u(l.options.chart[a+\\\"Count\\\"],l[a+\\\"Count\\\"]);b||(e=u(g[d],g[\\\"_\\\"+d]),A(e)||(l.series.length||(l[h]=0),g[\\\"_\\\"+d]=e=l[h]%k,l[h]+=1),c&&(b=c[e]));void 0!==e&&(this[d]=e);this[a]=b},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic(\\\"color\\\",this.options.color||r[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic(\\\"symbol\\\",\\nthis.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:a.LegendSymbolMixin.drawLineMarker,updateData:function(b){var c=this.options,e=this.points,l=[],d,g,h,m=this.requireSorting;w(b,function(b){var g;g=a.defined(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b).x;k(g)&&(g=a.inArray(g,this.xData,h),-1===g?l.push(b):b!==c.data[g]?(e[g].update(b,!1,null,!1),e[g].touched=!0,m&&(h=g)):e[g]&&(e[g].touched=!0),d=!0)},this);if(d)for(b=e.length;b--;)g=e[b],g.touched||g.remove(!1),\\ng.touched=!1;else if(b.length===e.length)w(b,function(a,b){e[b].update&&a!==c.data[b]&&e[b].update(a,!1,null,!1)});else return!1;w(l,function(a){this.addPoint(a,!1)},this);return!0},setData:function(c,e,d,h){var l=this,g=l.points,F=g&&g.length||0,v,z=l.options,t=l.chart,f=null,p=l.xAxis,n=z.turboThreshold,H=this.xData,G=this.yData,K=(v=l.pointArrayMap)&&v.length,I;c=c||[];v=c.length;e=u(e,!0);!1!==h&&v&&F&&!l.cropped&&!l.hasGroupedData&&l.visible&&(I=this.updateData(c));if(!I){l.xIncrement=null;l.colorCounter=\\n0;w(this.parallelArrays,function(a){l[a+\\\"Data\\\"].length=0});if(n&&v>n){for(d=0;null===f&&dm||this.forceCrop))if(c[l-1]n)c=[],e=[];else if(c[0]n)d=this.cropData(this.xData,this.yData,u,n),c=d.xData,e=d.yData,d=d.start,g=!0;for(m=c.length||1;--m;)l=t?v(c[m])-v(c[m-1]):c[m]-c[m-1],0l&&p&&(a.error(15),p=!1);this.cropped=g;this.cropStart=d;this.processedXData=c;this.processedYData=e;this.closestPointRange=h},cropData:function(a,b,c,e,d){var g=a.length,l=0,h=g,k;d=\\nu(d,this.cropShoulder,1);for(k=0;k=c){l=Math.max(0,k-d);break}for(c=k;ce){h=c+d;break}return{xData:a.slice(l,h),yData:b.slice(l,h),start:l,end:h}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,d=this.processedXData,g=this.processedYData,h=this.pointClass,k=d.length,m=this.cropStart||0,v,f=this.hasGroupedData,a=a.keys,t,p=[],u;c||f||(c=[],c.length=b.length,c=this.data=c);a&&f&&(this.options.keys=!1);for(u=0;u=d&&(c[p-t]||f)<=h,v&&f)if(v=z.length)for(;v--;)\\\"number\\\"===typeof z[v]&&(l[g++]=z[v]);else l[g++]=z;this.dataMin=q(l);this.dataMax=E(l)},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,e=this.xAxis,d=e.categories,h=this.yAxis,g=this.points,m=g.length,v=!!this.modifyValue,f=a.pointPlacement,\\nz=\\\"between\\\"===f||k(f),t=a.threshold,p=a.startFromThreshold?t:0,G,I,w,q,r=Number.MAX_VALUE;\\\"between\\\"===f&&(f=.5);k(f)&&(f*=u(a.pointRange||e.pointRange));for(a=0;a=C&&(y.isNull=!0);y.plotX=G=n(Math.min(Math.max(-1E5,e.translate(D,0,0,0,1,f,\\\"flags\\\"===this.type)),1E5));b&&this.visible&&!y.isNull&&E&&E[D]&&(q=this.getStackIndicator(q,D,this.index),L=E[D],C=L.points[q.key],\\nI=C[0],C=C[1],I===p&&q.key===E[D].base&&(I=u(k(t)&&t,h.min)),h.positiveValuesOnly&&0>=I&&(I=null),y.total=y.stackTotal=L.total,y.percentage=L.total&&y.y/L.total*100,y.stackY=C,L.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=A(I)?Math.min(Math.max(-1E5,h.translate(I,0,1,0,1)),1E5):null;v&&(C=this.modifyValue(C,y));y.plotY=I=\\\"number\\\"===typeof C&&Infinity!==C?Math.min(Math.max(-1E5,h.translate(C,0,1,0,1)),1E5):void 0;y.isInside=void 0!==I&&0<=I&&I<=h.len&&0<=G&&G<=e.len;y.clientX=z?n(e.translate(D,\\n0,0,0,1,f)):G;y.negative=y.y<(t||0);y.category=d&&void 0!==d[y.x]?d[y.x]:y.x;y.isNull||(void 0!==w&&(r=Math.min(r,Math.abs(G-w))),w=G);y.zone=this.zones.length&&y.getZone()}this.closestPointRangePx=r;c(this,\\\"afterTranslate\\\")},getValidPoints:function(a,b){var c=this.chart;return d(a||this.points||[],function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:!a.isNull})},setClip:function(a){var b=this.chart,c=this.options,e=b.renderer,d=b.inverted,g=this.clipBox,l=g||b.clipBox,h=this.sharedClipKey||\\n[\\\"_sharedClip\\\",a&&a.duration,a&&a.easing,l.height,c.xAxis,c.yAxis].join(),k=b[h],m=b[h+\\\"m\\\"];k||(a&&(l.width=0,d&&(l.x=b.plotSizeX),b[h+\\\"m\\\"]=m=e.clipRect(d?b.plotSizeX+99:-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[h]=k=e.clipRect(l),k.count={length:0});a&&!k.count[this.index]&&(k.count[this.index]=!0,k.count.length+=1);!1!==c.clip&&(this.group.clip(a||g?k:b.clipRect),this.markerGroup.clip(m),this.sharedClipKey=h);a||(k.count[this.index]&&(delete k.count[this.index],--k.count.length),\\n0===k.count.length&&h&&b[h]&&(g||(b[h]=b[h].destroy()),b[h+\\\"m\\\"]&&(b[h+\\\"m\\\"]=b[h+\\\"m\\\"].destroy())))},animate:function(a){var b=this.chart,c=D(this.options.animation),e;a?this.setClip(c):(e=this.sharedClipKey,(a=b[e])&&a.animate({width:b.plotSizeX,x:0},c),b[e+\\\"m\\\"]&&b[e+\\\"m\\\"].animate({width:b.plotSizeX+99,x:0},c),this.animate=null)},afterAnimate:function(){this.setClip();c(this,\\\"afterAnimate\\\");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,c,e,d,g,h=this.options.marker,\\nk,m,v,f=this[this.specialGroup]||this.markerGroup,t,z=u(h.enabled,this.xAxis.isRadial?!0:null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(c=0;cg&&b.shadow));l&&(l.startX=c.xMap,l.isArea=c.isArea)})},getZonesGraphs:function(a){w(this.zones,function(b,c){a.push([\\\"zone-graph-\\\"+c,\\\"highcharts-graph highcharts-zone-graph-\\\"+c+\\\" \\\"+(b.className||\\\"\\\"),b.color||this.color,b.dashStyle||this.options.dashStyle])},this);return a},applyZones:function(){var a=this,\\nb=this.chart,c=b.renderer,e=this.zones,d,g,h=this.clips||[],k,m=this.graph,v=this.area,f=Math.max(b.chartWidth,b.chartHeight),t=this[(this.zoneAxis||\\\"y\\\")+\\\"Axis\\\"],z,p,n=b.inverted,G,I,q,r,y=!1;e.length&&(m||v)&&t&&void 0!==t.min&&(p=t.reversed,G=t.horiz,m&&!this.showLine&&m.hide(),v&&v.hide(),z=t.getExtremes(),w(e,function(e,l){d=p?G?b.plotWidth:0:G?0:t.toPixels(z.min);d=Math.min(Math.max(u(g,d),0),f);g=Math.min(Math.max(Math.round(t.toPixels(u(e.value,z.max),!0)),0),f);y&&(d=g=t.toPixels(z.max));\\nI=Math.abs(d-g);q=Math.min(d,g);r=Math.max(d,g);t.isXAxis?(k={x:n?r:q,y:0,width:I,height:f},G||(k.x=b.plotHeight-k.x)):(k={x:0,y:n?r:q,width:f,height:I},G&&(k.y=b.plotWidth-k.y));n&&c.isVML&&(k=t.isXAxis?{x:0,y:p?q:r,height:k.width,width:b.chartWidth}:{x:k.y-b.plotLeft-b.spacingBox.x,y:0,width:k.height,height:b.chartHeight});h[l]?h[l].animate(k):(h[l]=c.clipRect(k),m&&a[\\\"zone-graph-\\\"+l].clip(h[l]),v&&a[\\\"zone-area-\\\"+l].clip(h[l]));y=e.value>z.max;a.resetZones&&0===g&&(g=void 0)}),this.clips=h)},invertGroups:function(a){function b(){w([\\\"group\\\",\\n\\\"markerGroup\\\"],function(b){c[b]&&(e.renderer.isVML&&c[b].attr({width:c.yAxis.len,height:c.xAxis.len}),c[b].width=c.yAxis.len,c[b].height=c.xAxis.len,c[b].invert(a))})}var c=this,e=c.chart,d;c.xAxis&&(d=C(e,\\\"resize\\\",b),C(c,\\\"destroy\\\",d),b(a),c.invertGroups=b)},plotGroup:function(a,b,c,e,d){var g=this[a],l=!g;l&&(this[a]=g=this.chart.renderer.g().attr({zIndex:e||.1}).add(d));g.addClass(\\\"highcharts-\\\"+b+\\\" highcharts-series-\\\"+this.index+\\\" highcharts-\\\"+this.type+\\\"-series \\\"+(A(this.colorIndex)?\\\"highcharts-color-\\\"+\\nthis.colorIndex+\\\" \\\":\\\"\\\")+(this.options.className||\\\"\\\")+(g.hasClass(\\\"highcharts-tracker\\\")?\\\" highcharts-tracker\\\":\\\"\\\"),!0);g.attr({visibility:c})[l?\\\"attr\\\":\\\"animate\\\"](this.getPlotBox());return g},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;a.inverted&&(b=c,c=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,e,d=a.options,h=!!a.animate&&b.renderer.isSVG&&D(d.animation).duration,g=a.visible?\\\"inherit\\\":\\n\\\"hidden\\\",k=d.zIndex,m=a.hasRendered,t=b.seriesGroup,f=b.inverted;e=a.plotGroup(\\\"group\\\",\\\"series\\\",g,k,t);a.markerGroup=a.plotGroup(\\\"markerGroup\\\",\\\"markers\\\",g,k,t);h&&a.animate(!0);e.inverted=a.isCartesian?f:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.drawDataLabels&&a.drawDataLabels();a.visible&&a.drawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(f);!1===d.clip||a.sharedClipKey||m||e.clip(b.clipRect);h&&a.animate();m||(a.animationTimeout=v(function(){a.afterAnimate()},\\nh));a.isDirty=!1;a.hasRendered=!0;c(a,\\\"afterRender\\\")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(a.inverted&&c.attr({width:a.plotWidth,height:a.plotHeight}),c.animate({translateX:u(e&&e.left,a.plotLeft),translateY:u(d&&d.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:[\\\"clientX\\\",\\\"plotY\\\"],searchPoint:function(a,b){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?\\nc.len-a.chartY+c.pos:a.chartX-c.pos,plotY:d?e.len-a.chartX+e.pos:a.chartY-e.pos},b)},buildKDTree:function(){function a(c,e,g){var d,l;if(l=c&&c.length)return d=b.kdAxisArray[e%g],c.sort(function(a,b){return a[d]-b[d]}),l=Math.floor(l/2),{point:c[l],left:a(c.slice(0,l),e+1,g),right:a(c.slice(l+1),e+1,g)}}this.buildingKdTree=!0;var b=this,c=-1v?\\\"left\\\":\\\"right\\\";f=0>v?\\\"right\\\":\\\"left\\\";b[t]&&(t=c(a,b[t],h+1,k),B=t[l]u;)z--;this.updateParallelArrays(f,\\\"splice\\\",z,0,0);this.updateParallelArrays(f,z);g&&f.name&&(g[u]=f.name);m.splice(z,0,a);t&&(this.data.splice(z,0,null),this.processData());\\\"point\\\"===l.legendType&&this.generatePoints();c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(f,\\\"shift\\\"),m.shift()));this.isDirtyData=this.isDirty=!0;b&&k.redraw(d)},removePoint:function(a,b,c){var d=this,l=d.data,h=l[a],k=d.points,\\ng=d.chart,m=function(){k&&k.length===l.length&&k.splice(a,1);l.splice(a,1);d.options.data.splice(a,1);d.updateParallelArrays(h||{series:d},\\\"splice\\\",a,1);h&&h.destroy();d.isDirty=!0;d.isDirtyData=!0;b&&g.redraw()};z(c,g);b=e(b,!0);h?h.firePointEvent(\\\"remove\\\",null,m):m()},remove:function(a,b,c){function d(){l.destroy();h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();e(a,!0)&&h.redraw(b)}var l=this,h=l.chart;!1!==c?y(l,\\\"remove\\\",null,d):d()},update:function(b,c){var d=this,h=d.chart,m=d.userOptions,f=\\nd.oldType||d.type,v=b.type||m.type||h.options.chart.type,g=t[f].prototype,z,u=[\\\"group\\\",\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],n=[\\\"navigatorSeries\\\",\\\"baseSeries\\\"],G=d.finishedAnimating&&{animation:!1},I=[\\\"data\\\",\\\"name\\\",\\\"turboThreshold\\\"],q=a.keys(b),A=0a&&w>f?(w=Math.max(a,f),p=2*f-w):wq&&p>f?(p=Math.max(q,f),w=2*f-p):p=Math.abs(c)&&.5a.closestPointRange*a.xAxis.transA,m=a.borderWidth=r(d.borderWidth,m?0:1),k=a.yAxis,b=d.threshold,e=a.translatedThreshold=k.getThreshold(b),h=r(d.minPointLength,5),f=a.getColumnMetrics(),t=f.width,z=a.barW=Math.max(t,1+2*m),n=a.pointXOffset=f.offset;c.inverted&&(e-=.5);d.pointPadding&&(z=Math.ceil(z));A.prototype.translate.apply(a);E(a.points,function(d){var m=r(d.yBottom,e),l=999+Math.abs(m),l=Math.min(Math.max(-l,d.plotY),k.len+l),\\nf=d.plotX+n,v=z,u=Math.min(l,m),B,g=Math.max(l,m)-u;h&&Math.abs(g)h?m-h:e-(B?h:0));d.barX=f;d.pointWidth=t;d.tooltipPos=c.inverted?[k.len+k.pos-c.plotLeft-l,a.xAxis.len-f-v/2,g]:[f+v/2,l+k.pos-c.plotTop,g];d.shapeType=\\\"rect\\\";d.shapeArgs=a.crispCol.apply(a,d.isNull?[f,e,v,0]:[f,u,v,g])})},getSymbol:a.noop,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?\\n\\\"addClass\\\":\\\"removeClass\\\"](\\\"highcharts-dense-data\\\")},pointAttribs:function(a,c){var d=this.options,m,k=this.pointAttrToOptions||{};m=k.stroke||\\\"borderColor\\\";var b=k[\\\"stroke-width\\\"]||\\\"borderWidth\\\",e=a&&a.color||this.color,h=a&&a[m]||d[m]||this.color||e,u=a&&a[b]||d[b]||this[b]||0,k=d.dashStyle;a&&this.zones.length&&(e=a.getZone(),e=a.options.color||e&&e.color||this.color);c&&(a=f(d.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,e=a.color||void 0!==c&&D(e).brighten(a.brightness).get()||\\ne,h=a[m]||h,u=a[b]||u,k=a.dashStyle||k);m={fill:e,stroke:h,\\\"stroke-width\\\":u};k&&(m.dashstyle=k);return m},drawPoints:function(){var a=this,c=this.chart,d=a.options,m=c.renderer,k=d.animationLimit||250,b;E(a.points,function(e){var h=e.graphic,u=h&&c.pointCountp;++p)c=w[p],a=2>p||2===p&&/%$/.test(c),w[p]=q(c,[A,f,y,w[2]][p])+(a?r:0);w[3]>w[2]&&(w[3]=w[2]);return w},getStartAndEndRadians:function(a,f){a=D(a)?a:0;f=D(f)&&f>a&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}}})(L);(function(a){var C=a.addEvent,D=a.CenteredSeriesMixin,E=a.defined,q=a.each,n=a.extend,f=D.getStartAndEndRadians,r=a.inArray,A=a.noop,w=a.pick,y=a.Point,\\np=a.Series,c=a.seriesType,d=a.setAnimation;c(\\\"pie\\\",\\\"line\\\",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:\\\"point\\\",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:\\\"#ffffff\\\",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,\\ntrackerGroups:[\\\"group\\\",\\\"dataLabelsGroup\\\"],axisTypes:[],pointAttribs:a.seriesTypes.column.prototype.pointAttribs,animate:function(a){var c=this,b=c.points,e=c.startAngleRad;a||(q(b,function(a){var b=a.graphic,d=a.shapeArgs;b&&(b.attr({r:a.startR||c.center[3]/2,start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))}),c.animate=null)},updateTotals:function(){var a,c=0,b=this.points,e=b.length,d,f=this.options.ignoreHiddenPoint;for(a=0;a1.5*Math.PI?\\nz-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI);B.slicedTranslation={translateX:Math.round(Math.cos(z)*e),translateY:Math.round(Math.sin(z)*e)};t=Math.cos(z)*a[2]/2;l=Math.sin(z)*a[2]/2;B.tooltipPos=[a[0]+.7*t,a[1]+.7*l];B.half=z<-Math.PI/2||z>Math.PI/2?1:0;B.angle=z;m=Math.min(d,B.labelDistance/5);B.labelPos=[a[0]+t+Math.cos(z)*B.labelDistance,a[1]+l+Math.sin(z)*B.labelDistance,a[0]+t+Math.cos(z)*m,a[1]+l+Math.sin(z)*m,a[0]+t,a[1]+l,0>B.labelDistance?\\\"center\\\":B.half?\\\"right\\\":\\\"left\\\",z]}},drawGraph:null,\\ndrawPoints:function(){var a=this,c=a.chart.renderer,b,e,d,f,t=a.options.shadow;t&&!a.shadowGroup&&(a.shadowGroup=c.g(\\\"shadow\\\").add(a.group));q(a.points,function(h){e=h.graphic;if(h.isNull)e&&(h.graphic=e.destroy());else{f=h.shapeArgs;b=h.getTranslate();var k=h.shadowGroup;t&&!k&&(k=h.shadowGroup=c.g(\\\"shadow\\\").add(a.shadowGroup));k&&k.attr(b);d=a.pointAttribs(h,h.selected&&\\\"select\\\");e?e.setRadialReference(a.center).attr(d).animate(n(f,b)):(h.graphic=e=c[h.shapeType](f).setRadialReference(a.center).attr(b).add(a.group),\\ne.attr(d).attr({\\\"stroke-linejoin\\\":\\\"round\\\"}).shadow(t,k));e.attr({visibility:h.visible?\\\"inherit\\\":\\\"hidden\\\"});e.addClass(h.getClassName())}})},searchPoint:A,sortByAngle:function(a,c){a.sort(function(a,e){return void 0!==a.angle&&(e.angle-a.angle)*c})},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,getCenter:D.getCenter,getSymbol:A},{init:function(){y.prototype.init.apply(this,arguments);var a=this,c;a.name=w(a.name,\\\"Slice\\\");c=function(b){a.slice(\\\"select\\\"===b.type)};C(a,\\\"select\\\",c);C(a,\\\"unselect\\\",\\nc);return a},isValid:function(){return a.isNumber(this.y,!0)&&0<=this.y},setVisible:function(a,c){var b=this,e=b.series,d=e.chart,k=e.options.ignoreHiddenPoint;c=w(c,k);a!==b.visible&&(b.visible=b.options.visible=a=void 0===a?!b.visible:a,e.options.data[r(b,e.data)]=b.options,q([\\\"graphic\\\",\\\"dataLabel\\\",\\\"connector\\\",\\\"shadowGroup\\\"],function(c){if(b[c])b[c][a?\\\"show\\\":\\\"hide\\\"](!0)}),b.legendItem&&d.legend.colorizeItem(b,a),a||\\\"hover\\\"!==b.state||b.setState(\\\"\\\"),k&&(e.isDirty=!0),c&&d.redraw())},slice:function(a,\\nc,b){var e=this.series;d(b,e.chart);w(c,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;e.options.data[r(this,e.data)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:this.shapeArgs.r-\\n1,start:c.start,end:c.end})}})})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.defined,q=a.each,n=a.extend,f=a.format,r=a.map,A=a.merge,w=a.noop,y=a.pick,p=a.relativeLength,c=a.Series,d=a.seriesTypes,m=a.some,k=a.stableSort;a.distribute=function(b,c,d){function e(a,b){return a.target-b.target}var h,f=!0,n=b,v=[],p;p=0;var l=n.reducedLen||c;for(h=b.length;h--;)p+=b[h].size;if(p>l){k(b,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=l;)p+=b[h].size,h++;v=b.splice(h-1,b.length)}k(b,e);\\nfor(b=r(b,function(a){return{size:a.size,targets:[a.target],align:y(a.align,.5)}});f;){for(h=b.length;h--;)f=b[h],p=(Math.min.apply(0,f.targets)+Math.max.apply(0,f.targets))/2,f.pos=Math.min(Math.max(0,p-f.size*f.align),c-f.size);h=b.length;for(f=!1;h--;)0b[h].pos&&(b[h-1].size+=b[h].size,b[h-1].targets=b[h-1].targets.concat(b[h].targets),b[h-1].align=.5,b[h-1].pos+b[h-1].size>c&&(b[h-1].pos=c-b[h-1].size),b.splice(h,1),f=!0)}n.push.apply(n,v);h=0;m(b,function(b){var e=\\n0;if(m(b.targets,function(){n[h].pos=b.pos+e;if(Math.abs(n[h].pos-n[h].target)>d)return q(n.slice(0,h+1),function(a){delete a.pos}),n.reducedLen=(n.reducedLen||c)-.1*c,n.reducedLen>.1*c&&a.distribute(n,c,d),!0;e+=n[h].size;h++}))return!0});k(n,e)};c.prototype.drawDataLabels=function(){function b(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,\\\"\\\\x3e\\\"===b&&a>c||\\\"\\\\x3c\\\"===b&&a=c||\\\"\\\\x3c\\\\x3d\\\"===b&&a<=c||\\\"\\\\x3d\\\\x3d\\\"===b&&a==c||\\\"\\\\x3d\\\\x3d\\\\x3d\\\"===b&&a===c?!0:!1):!0}\\nvar c=this,d=c.chart,k=c.options,m=k.dataLabels,z=c.points,n,v,p=c.hasRendered||0,l,r,w=y(m.defer,!!k.animation),F=d.renderer;if(m.enabled||c._hasPointLabels)c.dlProcessOptions&&c.dlProcessOptions(m),r=c.plotGroup(\\\"dataLabelsGroup\\\",\\\"data-labels\\\",w&&!p?\\\"hidden\\\":\\\"visible\\\",m.zIndex||6),w&&(r.attr({opacity:+p}),p||C(c,\\\"afterAnimate\\\",function(){c.visible&&r.show(!0);r[k.animation?\\\"animate\\\":\\\"attr\\\"]({opacity:1},{duration:200})})),v=m,q(z,function(e){var g,h=e.dataLabel,z,t,B=e.connector,u=!h,p;n=e.dlOptions||\\ne.options&&e.options.dataLabels;(g=y(n&&n.enabled,v.enabled)&&!e.isNull)&&(g=!0===b(e,n||m));g&&(m=A(v,n),z=e.getLabelConfig(),p=m[e.formatPrefix+\\\"Format\\\"]||m.format,l=E(p)?f(p,z,d.time):(m[e.formatPrefix+\\\"Formatter\\\"]||m.formatter).call(z,m),p=m.style,z=m.rotation,p.color=y(m.color,p.color,c.color,\\\"#000000\\\"),\\\"contrast\\\"===p.color&&(e.contrastColor=F.getContrast(e.color||c.color),p.color=m.inside||0>y(e.labelDistance,m.distance)||k.stacking?e.contrastColor:\\\"#000000\\\"),k.cursor&&(p.cursor=k.cursor),t=\\n{fill:m.backgroundColor,stroke:m.borderColor,\\\"stroke-width\\\":m.borderWidth,r:m.borderRadius||0,rotation:z,padding:m.padding,zIndex:1},a.objectEach(t,function(a,b){void 0===a&&delete t[b]}));!h||g&&E(l)?g&&E(l)&&(h?t.text=l:(h=e.dataLabel=z?F.text(l,0,-9999).addClass(\\\"highcharts-data-label\\\"):F.label(l,0,-9999,m.shape,null,null,m.useHTML,null,\\\"data-label\\\"),h.addClass(\\\" highcharts-data-label-color-\\\"+e.colorIndex+\\\" \\\"+(m.className||\\\"\\\")+(m.useHTML?\\\" highcharts-tracker\\\":\\\"\\\"))),h.attr(t),h.css(p).shadow(m.shadow),\\nh.added||h.add(r),c.alignDataLabel(e,h,m,null,u)):(e.dataLabel=h=h.destroy(),B&&(e.connector=B.destroy()))});a.fireEvent(this,\\\"afterDrawDataLabels\\\")};c.prototype.alignDataLabel=function(a,c,d,k,m){var b=this.chart,e=b.inverted,h=y(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),f=y(a.plotY,-9999),l=c.getBBox(),t,u=d.rotation,p=d.align,B=this.visible&&(a.series.forceDL||b.isInsidePlot(h,Math.round(f),e)||k&&b.isInsidePlot(h,e?k.x+1:k.y+k.height-1,e)),g=\\\"justify\\\"===y(d.overflow,\\\"justify\\\");if(B&&(t=d.style.fontSize,\\nt=b.renderer.fontMetrics(t,c).b,k=n({x:e?this.yAxis.len-f:h,y:Math.round(e?this.xAxis.len-h:f),width:0,height:0},k),n(d,{width:l.width,height:l.height}),u?(g=!1,h=b.renderer.rotCorr(t,u),h={x:k.x+d.x+k.width/2+h.x,y:k.y+d.y+{top:0,middle:.5,bottom:1}[d.verticalAlign]*k.height},c[m?\\\"attr\\\":\\\"animate\\\"](h).attr({align:p}),f=(u+720)%360,f=180f,\\\"left\\\"===p?h.y-=f?l.height:0:\\\"center\\\"===p?(h.x-=l.width/2,h.y-=l.height/2):\\\"right\\\"===p&&(h.x-=l.width,h.y-=f?0:l.height),c.placed=!0,c.alignAttr=h):(c.align(d,\\nnull,k),h=c.alignAttr),g?a.isLabelJustified=this.justifyDataLabel(c,d,h,l,k,m):y(d.crop,!0)&&(B=b.isInsidePlot(h.x,h.y)&&b.isInsidePlot(h.x+l.width,h.y+l.height)),d.shape&&!u))c[m?\\\"attr\\\":\\\"animate\\\"]({anchorX:e?b.plotWidth-a.plotY:a.plotX,anchorY:e?b.plotHeight-a.plotX:a.plotY});B||(c.attr({y:-9999}),c.placed=!1)};c.prototype.justifyDataLabel=function(a,c,d,k,f,m){var b=this.chart,e=c.align,h=c.verticalAlign,l,z,t=a.box?0:a.padding||0;l=d.x+t;0>l&&(\\\"right\\\"===e?c.align=\\\"left\\\":c.x=-l,z=!0);l=d.x+k.width-\\nt;l>b.plotWidth&&(\\\"left\\\"===e?c.align=\\\"right\\\":c.x=b.plotWidth-l,z=!0);l=d.y+t;0>l&&(\\\"bottom\\\"===h?c.verticalAlign=\\\"top\\\":c.y=-l,z=!0);l=d.y+k.height-t;l>b.plotHeight&&(\\\"top\\\"===h?c.verticalAlign=\\\"bottom\\\":c.y=b.plotHeight-l,z=!0);z&&(a.placed=!m,a.align(c,null,f));return z};d.pie&&(d.pie.prototype.drawDataLabels=function(){var b=this,d=b.data,h,k=b.chart,f=b.options.dataLabels,m=y(f.connectorPadding,10),n=y(f.connectorWidth,1),v=k.plotWidth,p=k.plotHeight,l=Math.round(k.chartWidth/3),r,w=b.center,F=w[2]/\\n2,B=w[1],g,x,A,O,M=[[],[]],C,P,J,T,S=[0,0,0,0];b.visible&&(f.enabled||b._hasPointLabels)&&(q(d,function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:\\\"auto\\\"}).css({width:\\\"auto\\\",textOverflow:\\\"clip\\\"}),a.dataLabel.shortened=!1)}),c.prototype.drawDataLabels.apply(b),q(d,function(a){a.dataLabel&&(a.visible?(M[a.half].push(a),a.dataLabel._pos=null,!E(f.style.width)&&!E(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>\\nl&&(a.dataLabel.css({width:.7*l}),a.dataLabel.shortened=!0)):a.dataLabel=a.dataLabel.destroy())}),q(M,function(c,d){var e,l,z=c.length,t=[],n;if(z)for(b.sortByAngle(c,d-.5),0h.bottom-2?e:P,d,h),g._attr={visibility:J,align:A[6]},g._pos={x:C+f.x+({left:m,right:-m}[A[6]]||0),y:P+f.y-10},A.x=C,A.y=P,y(f.crop,\\n!0)&&(x=g.getBBox().width,e=null,C-xv-m&&0===d&&(e=Math.round(C+x-v+m),S[1]=Math.max(e,S[1])),0>P-O/2?S[0]=Math.max(Math.round(-P+O/2),S[0]):P+O/2>p&&(S[2]=Math.max(Math.round(P+O/2-p),S[2])),g.sideOverflow=e)}),0===D(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),n&&q(this.points,function(a){var c;r=a.connector;if((g=a.dataLabel)&&g._pos&&a.visible&&0y(this.translatedThreshold,e.yAxis.len)),l=y(h.inside,!!this.options.stacking);m&&(k=A(m),0>k.y&&(k.height+=k.y,k.y=0),m=k.y+k.height-e.yAxis.len,0a+b||h+nc+d||f+zthis.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;d&&r(d,function(a){a.setState()});r(\\\"xy\\\"===b?[1,0]:\\n[1],function(b){b=c[b?\\\"xAxis\\\":\\\"yAxis\\\"][0];var d=b.horiz,h=a[d?\\\"chartX\\\":\\\"chartY\\\"],d=d?\\\"mouseDownX\\\":\\\"mouseDownY\\\",l=c[d],g=(b.pointRange||0)/2,k=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,f=b.getExtremes(),m=b.toValue(l-h,!0)+g*k,k=b.toValue(l+b.len-h,!0)-g*k,n=k=f(q.minWidth,0)&&this.chartHeight>=f(q.minHeight,0)}).call(this)&&n.push(a._id)};C.prototype.currentOptions=\\nfunction(f){function w(f,c,d,m){var k;a.objectEach(f,function(a,e){if(!m&&-1e.length||void 0===f)return a.call(this,d,f,k,b);l=e.length;for(m=0;mk;e[m]5*h||r){if(e[m]>F){for(p=a.call(this,\\nd,e[c],e[m],b);p.length&&p[0]<=F;)p.shift();p.length&&(F=p[p.length-1]);w=w.concat(p)}c=m+1}if(r)break}a=p.info;if(u&&a.unitRange<=y.hour){m=w.length-1;for(c=1;ck?g-1:g;for(x=void 0;u--;)c=m[u],k=Math.abs(x-c),x&&k<.8*\\nB&&(null===q||k<.8*q)?(v[w[u]]&&!v[w[u+1]]?(k=u+1,x=c):k=u,w.splice(k,1)):x=c}return w});r(D.prototype,{beforeSetTickPositions:function(){var a,d=[],m,k=!1,b,e=this.getExtremes(),h=e.min,u=e.max,t,p=this.isXAxis&&!!this.options.breaks,e=this.options.ordinal,q=Number.MAX_VALUE,v=this.chart.options.chart.ignoreHiddenSeries;b=\\\"highcharts-navigator-xaxis\\\"===this.options.className;!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!b||this.eventArgs&&(!this.eventArgs||\\\"navigator\\\"===\\nthis.eventArgs.trigger)||(this.max+=this.options.overscroll,!b&&n(this.userMin)&&(this.min+=this.options.overscroll));if(e||p){f(this.series,function(b,c){m=[];if(!(v&&!1===b.visible||!1===b.takeOrdinalPosition&&!p)&&(d=d.concat(b.processedXData),a=d.length,d.sort(function(a,b){return a-b}),q=Math.min(q,w(b.closestPointRange,q)),a)){for(c=0;cb||u-d[d.length-1]>b)&&(k=!0)}else this.options.overscroll&&(2===a?q=d[1]-d[0]:1===a?(q=this.options.overscroll,d=[d[0],d[0]+q]):q=this.overscrollPointsRange);k?(this.options.overscroll&&(this.overscrollPointsRange=q,d=d.concat(this.getOverscrollPositions())),this.ordinalPositions=d,b=this.ordinal2lin(Math.max(h,d[0]),!0),t=Math.max(this.ordinal2lin(Math.min(u,d[d.length-1]),!0),1),this.ordinalSlope=u=(u-h)/(t-b),this.ordinalOffset=h-b*u):(this.overscrollPointsRange=w(this.closestPointRange,\\nthis.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=e&&k;this.groupIntervalFactor=null},val2lin:function(a,d){var c=this.ordinalPositions;if(c){var k=c.length,b,e;for(b=k;b--;)if(c[b]===a){e=b;break}for(b=k-1;b--;)if(a>c[b]||0===b){a=(a-c[b])/(c[b+1]-c[b]);e=b+a;break}d=d?e:this.ordinalSlope*(e||0)+this.ordinalOffset}else d=a;return d},lin2val:function(a,d){var c=this.ordinalPositions;if(c){var k=this.ordinalSlope,b=this.ordinalOffset,e=c.length-\\n1,h;if(d)0>a?a=c[0]:a>e?a=c[e]:(e=Math.floor(a),h=a-e);else for(;e--;)if(d=k*e+b,a>=d){k=k*(e+1)+b;h=(a-d)/(k-d);break}return void 0!==h&&void 0!==c[e]?c[e]+(h?h*(c[e+1]-c[e]):0):a}return a},getExtendedPositions:function(){var a=this,d=a.chart,m=a.series[0].currentDataGrouping,k=a.ordinalIndex,b=m?m.count+m.unitName:\\\"raw\\\",e=a.options.overscroll,h=a.getExtremes(),n,t;k||(k=a.ordinalIndex={});k[b]||(n={series:[],chart:d,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+e}},options:{ordinal:!0},\\nval2lin:D.prototype.val2lin,ordinal2lin:D.prototype.ordinal2lin},f(a.series,function(b){t={xAxis:n,xData:b.xData.slice(),chart:d,destroyGroupedData:A};t.xData=t.xData.concat(a.getOverscrollPositions());t.options={dataGrouping:m?{enabled:!0,forced:!0,approximation:\\\"open\\\",units:[[m.unitName,[m.count]]]}:{enabled:!1}};b.processData.apply(t);n.series.push(t)}),a.beforeSetTickPositions.apply(n),k[b]=n.ordinalPositions);return k[b]},getOverscrollPositions:function(){var c=this.options.overscroll,d=this.overscrollPointsRange,\\nf=[],k=this.dataMax;if(a.defined(d))for(f.push(k);k<=this.dataMax+c;)k+=d,f.push(k);return f},getGroupIntervalFactor:function(a,d,f){var c;f=f.processedXData;var b=f.length,e=[];c=this.groupIntervalFactor;if(!c){for(c=0;ch?(v=l,A=c.ordinalPositions?c:l):(v=c.ordinalPositions?c:l,A=l),l=A.ordinalPositions,t>l[l.length-1]&&l.push(t),this.fixedRange=r-p,h=c.toFixedRange(null,null,w.apply(v,[y.apply(v,[p,!0])+h,!0]),w.apply(A,[y.apply(A,[r,!0])+h,!0])),h.min>=Math.min(n.dataMin,p)&&h.max<=Math.max(t,r)+k&&c.setExtremes(h.min,h.max,!0,!1,{trigger:\\\"pan\\\"}),this.mouseDownX=b,q(this.container,{cursor:\\\"move\\\"})):e=!0}else e=!0;e&&(k&&(c.max=c.dataMax+k),a.apply(this,Array.prototype.slice.call(arguments,\\n1)))})})(L);(function(a){function C(){return Array.prototype.slice.call(arguments,1)}function D(a){a.apply(this);this.drawBreaks(this.xAxis,[\\\"x\\\"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,[\\\"y\\\"]))}var E=a.addEvent,q=a.pick,n=a.wrap,f=a.each,r=a.extend,A=a.isArray,w=a.fireEvent,y=a.Axis,p=a.Series;r(y.prototype,{isInBreak:function(a,d){var c=a.repeat||Infinity,f=a.from,b=a.to-a.from;d=d>=f?(d-f)%c:c-(f-d)%c;return a.inclusive?d<=b:d=c)break;else if(a.isInBreak(b,c)){d-=c-b.from;break}return d},a.lin2val=function(c){var d,b;for(b=0;b=c);b++)d.ton;)v-=m;for(;vb.to||e>b.from&&nb.from&&nb.from&&n>b.to&&nc&&(c=d);k--;)f[k+1].x-f[k].x>c&&(d=(f[k].x+f[k+1].x)/2,f.splice(k+1,0,{isNull:!0,x:d}),this.options.stacking&&(d=b.stacks[this.stackKey][d]=new a.StackItem(b,b.options.stackLabels,!1,d,this.stack),d.total=0));return this.getGraphPath(f)};n(a.seriesTypes.column.prototype,\\\"drawPoints\\\",D);n(a.Series.prototype,\\\"drawPoints\\\",D)})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.defaultPlotOptions,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.isNumber,\\np=a.merge,c=a.pick,d=a.Point,m=a.Series,k=a.Tooltip,b=a.wrap,e=m.prototype,h=e.processData,u=e.generatePoints,t={approximation:\\\"average\\\",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:[\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"%A, %b %e, %H:%M:%S.%L\\\",\\\"-%H:%M:%S.%L\\\"],second:[\\\"%A, %b %e, %H:%M:%S\\\",\\\"%A, %b %e, %H:%M:%S\\\",\\\"-%H:%M:%S\\\"],minute:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],hour:[\\\"%A, %b %e, %H:%M\\\",\\\"%A, %b %e, %H:%M\\\",\\\"-%H:%M\\\"],day:[\\\"%A, %b %e, %Y\\\",\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],week:[\\\"Week from %A, %b %e, %Y\\\",\\n\\\"%A, %b %e\\\",\\\"-%A, %b %e, %Y\\\"],month:[\\\"%B %Y\\\",\\\"%B\\\",\\\"-%B %Y\\\"],year:[\\\"%Y\\\",\\\"%Y\\\",\\\"-%Y\\\"]}},z={line:{},spline:{},area:{},areaspline:{},column:{approximation:\\\"sum\\\",groupPixelWidth:10},arearange:{approximation:\\\"range\\\"},areasplinerange:{approximation:\\\"range\\\"},columnrange:{approximation:\\\"range\\\",groupPixelWidth:10},candlestick:{approximation:\\\"ohlc\\\",groupPixelWidth:10},ohlc:{approximation:\\\"ohlc\\\",groupPixelWidth:5}},I=a.defaultDataGroupingUnits=[[\\\"millisecond\\\",[1,2,5,10,20,25,50,100,200,500]],[\\\"second\\\",[1,2,5,\\n10,15,30]],[\\\"minute\\\",[1,2,5,10,15,30]],[\\\"hour\\\",[1,2,3,4,6,8,12]],[\\\"day\\\",[1]],[\\\"week\\\",[1]],[\\\"month\\\",[1,3,6]],[\\\"year\\\",null]],v=a.approximations={sum:function(a){var b=a.length,c;if(!b&&a.hasNulls)c=null;else if(b)for(c=0;b--;)c+=a[b];return c},average:function(a){var b=a.length;a=v.sum(a);y(a)&&b&&(a/=b);return a},averages:function(){var a=[];r(arguments,function(b){a.push(v.average(b))});return void 0===a[0]?void 0:a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?\\nD(a):a.hasNulls?null:void 0},low:function(a){return a.length?E(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,b,c,d){a=v.open(a);b=v.high(b);c=v.low(c);d=v.close(d);if(y(a)||y(b)||y(c)||y(d))return[a,b,c,d]},range:function(a,b){a=v.low(a);b=v.high(b);if(y(a)||y(b))return[a,b];if(null===a&&null===b)return null}};e.groupData=function(a,b,c,d){var e=this.data,h=this.options.data,g=[],f=[],k=[],l=a.length,m,n,p=!!b,u=[];d=\\\"function\\\"===\\ntypeof d?d:v[d]||z[this.type]&&v[z[this.type].approximation]||v[t.approximation];var q=this.pointArrayMap,w=q&&q.length,A=0;n=0;var G,I;w?r(q,function(){u.push([])}):u.push([]);G=w||1;for(I=0;I<=l&&!(a[I]>=c[0]);I++);for(I;I<=l;I++){for(;void 0!==c[A+1]&&a[I]>=c[A+1]||I===l;){m=c[A];this.dataGroupInfo={start:n,length:u[0].length};n=d.apply(this,u);void 0!==n&&(g.push(m),f.push(n),k.push(this.dataGroupInfo));n=I;for(m=0;mthis.chart.plotSizeX/d||b&&h.forced)&&(e=!0);return e?d:0};q.prototype.setDataGrouping=function(a,b){var d;b=c(b,!0);a||(a={forced:!1,units:null});if(this instanceof q)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else r(this.chart.options.series,function(b){b.dataGrouping=\\na},!1);this.ordinalSlope=null;b&&this.chart.redraw()}})(L);(function(a){var C=a.each,D=a.Point,E=a.seriesType,q=a.seriesTypes;E(\\\"ohlc\\\",\\\"column\\\",{lineWidth:1,tooltip:{pointFormat:'\\\\x3cspan style\\\\x3d\\\"color:{point.color}\\\"\\\\x3e\\\\u25cf\\\\x3c/span\\\\x3e \\\\x3cb\\\\x3e {series.name}\\\\x3c/b\\\\x3e\\\\x3cbr/\\\\x3eOpen: {point.open}\\\\x3cbr/\\\\x3eHigh: {point.high}\\\\x3cbr/\\\\x3eLow: {point.low}\\\\x3cbr/\\\\x3eClose: {point.close}\\\\x3cbr/\\\\x3e'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:[\\\"open\\\",\\n\\\"high\\\",\\\"low\\\",\\\"close\\\"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:\\\"close\\\",pointAttrToOptions:{stroke:\\\"color\\\",\\\"stroke-width\\\":\\\"lineWidth\\\"},pointAttribs:function(a,f){f=q.column.prototype.pointAttribs.call(this,a,f);var n=this.options;delete f.fill;!a.options.color&&n.upColor&&a.openA)););C(r,function(a,c){var d;a.plotX+=h;if(void 0===a.plotY||k)0<=a.plotX&&a.plotX<=b.len?k?(a.plotY=b.translate(a.x,0,1,0,1),a.plotX=D(a.y)?e.translate(a.y,0,0,0,1):0):a.plotY=f.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-e.top:a.shapeArgs={};(y=r[c-1])&&y.plotX===a.plotX&&(void 0===y.stackIndex&&(y.stackIndex=0),d=y.stackIndex+1);a.stackIndex=d});this.onSeries=p}}}(L);(function(a,C){function D(a){p[a+\\\"pin\\\"]=\\nfunction(c,f,k,b,e){var d=e&&e.anchorX;e=e&&e.anchorY;\\\"circle\\\"===a&&b>k&&(c-=Math.round((b-k)/2),k=b);c=p[a](c,f,k,b);d&&e&&(c.push(\\\"M\\\",\\\"circle\\\"===a?c[1]-c[4]:c[1]+c[4]/2,f>e?f:f+b,\\\"L\\\",d,e),c=c.concat(p.circle(d-1,e-1,2,2)));return c}}var E=a.addEvent,q=a.each,n=a.merge,f=a.noop,r=a.Renderer,A=a.seriesType,w=a.TrackerMixin,y=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;A(\\\"flags\\\",\\\"column\\\",{pointRange:0,allowOverlapX:!1,shape:\\\"flag\\\",stackDistance:12,textAlign:\\\"center\\\",tooltip:{pointFormat:\\\"{point.text}\\\\x3cbr/\\\\x3e\\\"},\\nthreshold:null,y:-30,fillColor:\\\"#ffffff\\\",lineWidth:1,states:{hover:{lineColor:\\\"#000000\\\",fillColor:\\\"#ccd6eb\\\"}},style:{fontSize:\\\"11px\\\",fontWeight:\\\"bold\\\"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:[\\\"markerGroup\\\"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,d){var c=this.options,f=a&&a.color||this.color,b=c.lineColor,e=a&&a.lineWidth;a=a&&a.fillColor||c.fillColor;d&&(a=c.states[d].fillColor,b=c.states[d].lineColor,e=c.states[d].lineWidth);return{fill:a||\\nf,stroke:b||f,\\\"stroke-width\\\":e||c.lineWidth||0}},translate:C.translate,getPlotBox:C.getPlotBox,drawPoints:function(){var c=this.points,d=this.chart,f=d.renderer,k,b,e=d.inverted,h=this.options,p=h.y,t,z,r,v,w,l,y=this.yAxis,A={},F=[];for(z=c.length;z--;)r=c[z],l=(e?r.plotY:r.plotX)>this.xAxis.len,k=r.plotX,v=r.stackIndex,t=r.options.shape||h.shape,b=r.plotY,void 0!==b&&(b=r.plotY+p-(void 0!==v&&v*h.stackDistance)),r.anchorX=v?void 0:r.plotX,w=v?void 0:r.plotY,v=r.graphic,void 0!==b&&0<=k&&!l?(v||\\n(v=r.graphic=f.label(\\\"\\\",null,null,t,null,null,h.useHTML).attr(this.pointAttribs(r)).css(n(h.style,r.style)).attr({align:\\\"flag\\\"===t?\\\"left\\\":\\\"center\\\",width:h.width,height:h.height,\\\"text-align\\\":h.textAlign}).addClass(\\\"highcharts-point\\\").add(this.markerGroup),r.graphic.div&&(r.graphic.div.point=r),v.shadow(h.shadow),v.isNew=!0),0=l?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===c.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var c=a.chart.pointer.normalize(b),d=a.options.vertical?\\\"chartY\\\":\\\"chartX\\\",e=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(c=a.cursorToScrollbarPosition(c)[d],d=a[d],d=c-d,a.hasDragged=!0,a.updatePosition(e[0]+d,e[1]+d),a.hasDragged&&w(a,\\\"changed\\\",\\n{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var c=q(a.to-a.from)*a.options.step;a.updatePosition(q(a.from-\\nc),q(a.to-c));w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.buttonToMaxClick=function(b){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);w(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})};a.trackClick=function(b){var c=a.chart.pointer.normalize(b),d=a.to-a.from,e=a.y+a.scrollbarTop,f=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&&c.chartX>f?a.updatePosition(a.from+d,a.to+d):a.updatePosition(a.from-d,a.to-d);\\nw(a,\\\"changed\\\",{from:a.from,to:a.to,trigger:\\\"scrollbar\\\",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1a&&(b=q(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,c(!0,this.options,a),this.chart)},addEvents:function(){var a=\\nthis.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,c=this.scrollbarGroup.element,d=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[b[a[0]].element,\\\"click\\\",this.buttonToMinClick],[b[a[1]].element,\\\"click\\\",this.buttonToMaxClick],[this.track.element,\\\"click\\\",this.trackClick],[c,\\\"mousedown\\\",d],[c.ownerDocument,\\\"mousemove\\\",e],[c.ownerDocument,\\\"mouseup\\\",f]];y&&a.push([c,\\\"touchstart\\\",d],[c.ownerDocument,\\\"touchmove\\\",e],[c.ownerDocument,\\\"touchend\\\",f]);A(a,function(a){D.apply(null,\\na)});this._events=a},removeEvents:function(){A(this._events,function(a){m.apply(null,a)});this._events.length=0},destroy:function(){var a=this.chart.scroller;this.removeEvents();A([\\\"track\\\",\\\"scrollbarRifles\\\",\\\"scrollbar\\\",\\\"scrollbarGroup\\\",\\\"group\\\"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,r(a.scrollbarButtons))}};k(E.prototype,\\\"init\\\",function(a){var b=this;a.apply(b,Array.prototype.slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&\\n(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),D(b.scrollbar,\\\"changed\\\",function(a){var c=Math.min(d(b.options.min,b.min),b.min,b.dataMin),e=Math.max(d(b.options.max,b.max),b.max,b.dataMax)-c,f;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(f=c+e*this.to,c+=e*this.from):(f=c+e*(1-this.from),c+=e*(1-this.to));b.setExtremes(c,f,!0,!1,a)}))});k(E.prototype,\\\"render\\\",function(a){var b=Math.min(d(this.options.min,\\nthis.min),this.min,d(this.dataMin,this.min)),c=Math.max(d(this.options.max,this.max),this.max,d(this.dataMax,this.max)),e=this.scrollbar,h=this.titleOffset||0;a.apply(this,Array.prototype.slice.call(arguments,1));if(e){this.horiz?(e.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:h+this.axisTitleMargin+this.offset),this.width,this.height),h=1):(e.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?h+this.axisTitleMargin+this.offset:\\n0),this.top,this.width,this.height),h=0);if(!this.opposite&&!this.horiz||this.opposite&&this.horiz)this.chart.scrollbarsOffsets[h]+=this.scrollbar.size+this.scrollbar.options.margin;isNaN(b)||isNaN(c)||!f(this.min)||!f(this.max)?e.setRange(0,0):(h=(this.min-b)/(c-b),b=(this.max-b)/(c-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(h,b):e.setRange(1-b,1-h))}});k(E.prototype,\\\"getOffset\\\",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,Array.prototype.slice.call(arguments,\\n1));c&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[b]+=c.size+c.options.margin)});k(E.prototype,\\\"destroy\\\",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,Array.prototype.slice.call(arguments,1))});a.Scrollbar=C})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.color,f=a.defaultOptions,r=a.defined,A=a.destroyObjectProperties,w=a.each,y=a.erase,p=a.error,c=a.extend,d=a.grep,m=a.hasTouch,k=a.isArray,b=a.isNumber,e=a.isObject,\\nh=a.isTouchDevice,u=a.merge,t=a.pick,z=a.removeEvent,I=a.Scrollbar,v=a.Series,G=a.seriesTypes,l=a.wrap,H=[].concat(a.defaultDataGroupingUnits),K=function(a){var c=d(arguments,b);if(c.length)return Math[a].apply(0,c)};H[4]=[\\\"day\\\",[1,2,3,4]];H[5]=[\\\"week\\\",[1,2,3]];G=void 0===G.areaspline?\\\"line\\\":\\\"areaspline\\\";c(f,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:[\\\"navigator-handle\\\",\\\"navigator-handle\\\"],enabled:!0,lineWidth:1,backgroundColor:\\\"#f2f2f2\\\",borderColor:\\\"#999999\\\"},\\nmaskFill:n(\\\"#6685c2\\\").setOpacity(.3).get(),outlineColor:\\\"#cccccc\\\",outlineWidth:1,series:{type:G,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:\\\"average\\\",enabled:!0,groupPixelWidth:2,smoothed:!0,units:H},dataLabels:{enabled:!1,zIndex:2},id:\\\"highcharts-navigator-series\\\",className:\\\"highcharts-navigator-series\\\",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:\\\"highcharts-navigator-xaxis\\\",tickLength:0,lineWidth:0,gridLineColor:\\\"#e6e6e6\\\",\\ngridLineWidth:1,tickPixelInterval:200,labels:{align:\\\"left\\\",style:{color:\\\"#999999\\\"},x:3,y:-4},crosshair:!1},yAxis:{className:\\\"highcharts-navigator-yaxis\\\",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});a.Renderer.prototype.symbols[\\\"navigator-handle\\\"]=function(a,b,c,d,e){a=e.width/2;b=Math.round(a/3)+.5;e=e.height;return[\\\"M\\\",-a-1,.5,\\\"L\\\",a,.5,\\\"L\\\",a,e+.5,\\\"L\\\",-a-1,e+.5,\\\"L\\\",-a-1,.5,\\\"M\\\",-b,4,\\\"L\\\",-b,e-\\n3,\\\"M\\\",b-1,4,\\\"L\\\",b-1,e-3]};C.prototype={drawHandle:function(a,b,c,d){var e=this.navigatorOptions.handles.height;this.handles[b][d](c?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(a,10)+.5-e)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-e/2-1)})},drawOutline:function(a,b,c,d){var e=this.navigatorOptions.maskInside,g=this.outline.strokeWidth(),f=g/2,g=g%2/2,h=this.outlineHeight,k=this.scrollbarHeight,l=this.size,\\nm=this.left-k,n=this.top;c?(m-=f,c=n+b+g,b=n+a+g,a=[\\\"M\\\",m+h,n-k-g,\\\"L\\\",m+h,c,\\\"L\\\",m,c,\\\"L\\\",m,b,\\\"L\\\",m+h,b,\\\"L\\\",m+h,n+l+k].concat(e?[\\\"M\\\",m+h,c-f,\\\"L\\\",m+h,b+f]:[])):(a+=m+k-g,b+=m+k-g,n+=f,a=[\\\"M\\\",m,n,\\\"L\\\",a,n,\\\"L\\\",a,n+h,\\\"L\\\",b,n+h,\\\"L\\\",b,n,\\\"L\\\",m+l+2*k,n].concat(e?[\\\"M\\\",a-f,n,\\\"L\\\",b+f,n]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var e=this.left,g=this.top,f=this.height,h,k,l,m;c?(l=[e,e,e],m=[g,g+a,g+b],k=[f,f,f],h=[a,b-a,this.size-b]):(l=[e,e+a,e+b],m=[g,g,g],k=[a,b-a,this.size-b],h=[f,f,f]);w(this.shades,\\nfunction(a,b){a[d]({x:l[b],y:m[b],width:k[b],height:h[b]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,h;a.navigatorGroup=h=f.g(\\\"navigator\\\").attr({zIndex:8,visibility:\\\"hidden\\\"}).add();var k={cursor:e?\\\"ns-resize\\\":\\\"ew-resize\\\"};w([!c,c,!c],function(c,d){a.shades[d]=f.rect().addClass(\\\"highcharts-navigator-mask\\\"+(1===d?\\\"-inside\\\":\\\"-outside\\\")).attr({fill:c?b.maskFill:\\\"rgba(0,0,0,0)\\\"}).css(1===d&&k).add(h)});a.outline=f.path().addClass(\\\"highcharts-navigator-outline\\\").attr({\\\"stroke-width\\\":b.outlineWidth,\\nstroke:b.outlineColor}).add(h);b.handles.enabled&&w([0,1],function(c){b.handles.inverted=d.inverted;a.handles[c]=f.symbol(b.handles.symbols[c],-b.handles.width/2-1,0,b.handles.width,b.handles.height,b.handles);a.handles[c].attr({zIndex:7-c}).addClass(\\\"highcharts-navigator-handle highcharts-navigator-handle-\\\"+[\\\"left\\\",\\\"right\\\"][c]).add(h);var e=b.handles;a.handles[c].attr({fill:e.backgroundColor,stroke:e.borderColor,\\\"stroke-width\\\":e.lineWidth}).css(k)})},update:function(a){w(this.series||[],function(a){a.baseSeries&&\\ndelete a.baseSeries.navigatorSeries});this.destroy();u(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(c,d,e,f){var g=this.chart,h,k,l=this.scrollbarHeight,m,n=this.xAxis;h=n.fake?g.xAxis[0]:n;var p=this.navigatorEnabled,q,B=this.rendered;k=g.inverted;var v,x=g.xAxis[0].minRange,F=g.xAxis[0].options.maxRange;if(!this.hasDragged||r(e)){if(!b(c)||!b(d))if(B)e=0,f=t(n.width,h.width);else return;this.left=t(n.left,g.plotLeft+l+(k?g.plotWidth:0));this.size=q=m=t(n.len,\\n(k?g.plotHeight:g.plotWidth)-2*l);g=k?l:m+2*l;e=t(e,n.toPixels(c,!0));f=t(f,n.toPixels(d,!0));b(e)&&Infinity!==Math.abs(e)||(e=0,f=g);c=n.toValue(e,!0);d=n.toValue(f,!0);v=Math.abs(a.correctFloat(d-c));vF&&(this.grabbedLeft?e=n.toPixels(d-F,!0):this.grabbedRight&&(f=n.toPixels(c+F,!0)));this.zoomedMax=Math.min(Math.max(e,f,0),q);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:\\nMath.min(e,f),0),q);this.range=this.zoomedMax-this.zoomedMin;q=Math.round(this.zoomedMax);e=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:\\\"visible\\\"}),B=B&&!this.hasDragged?\\\"animate\\\":\\\"attr\\\",this.drawMasks(e,q,k,B),this.drawOutline(e,q,k,B),this.navigatorOptions.handles.enabled&&(this.drawHandle(e,0,k,B),this.drawHandle(q,1,k,B)));this.scrollbar&&(k?(k=this.top-l,h=this.left-l+(p||!h.opposite?0:(h.titleOffset||0)+h.axisTitleMargin),l=m+2*l):(k=this.top+(p?this.height:-l),h=this.left-\\nl),this.scrollbar.position(h,k,g,l),this.scrollbar.setRange(this.zoomedMin/m,this.zoomedMax/m));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],e,f;a.mouseMoveHandler=e=function(b){a.onMouseMove(b)};a.mouseUpHandler=f=function(b){a.onMouseUp(b)};d=a.getPartsEvents(\\\"mousedown\\\");d.push(D(c,\\\"mousemove\\\",e),D(c.ownerDocument,\\\"mouseup\\\",f));m&&(d.push(D(c,\\\"touchmove\\\",e),D(c.ownerDocument,\\\"touchend\\\",f)),d.concat(a.getPartsEvents(\\\"touchstart\\\")));a.eventsToUnbind=d;a.series&&\\na.series[0]&&d.push(D(a.series[0].xAxis,\\\"foundExtremes\\\",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var b=this,c=[];w([\\\"shades\\\",\\\"handles\\\"],function(d){w(b[d],function(e,g){c.push(D(e.element,a,function(a){b[d+\\\"Mousedown\\\"](a,g)}))})});return c},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,d=this.xAxis,e=this.zoomedMin,f=this.left,h=this.size,k=this.range,l=a.chartX,m,n;c.inverted&&(l=a.chartY,f=this.top);1===b?(this.grabbedCenter=\\nl,this.fixedWidth=k,this.dragOffset=l-e):(a=l-f-k/2,0===b?a=Math.max(0,a):2===b&&a+k>=h&&(a=h-k,d.reversed?(a-=k,n=this.getUnionExtremes().dataMin):m=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=k,b=d.toFixedRange(a,a+k,n,m),r(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:\\\"navigator\\\"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],d=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=\\n!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,d=b.left,e=b.navigatorSize,f=b.range,h=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(d=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-d,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,\\nc-d)):b.grabbedCenter&&(b.hasDragged=!0,ce+h-f&&(c=e+h-f),b.render(0,0,c-h,c-h+f)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,d=c&&c.reversed,e=this.scrollbar,f,h,k=a.DOMEvent||a;(!this.hasDragged||e&&e.hasDragged)&&\\\"scrollbar\\\"!==a.trigger||(e=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?f=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&\\n(h=this.fixedExtreme),this.zoomedMax===this.size&&(h=d?e.dataMin:e.dataMax),0===this.zoomedMin&&(f=d?e.dataMax:e.dataMin),c=c.toFixedRange(this.zoomedMin,this.zoomedMax,f,h),r(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:\\\"navigator\\\",triggerOp:\\\"navigator-drag\\\",DOMEvent:k}));\\\"mousemove\\\"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=\\nnull)},removeEvents:function(){this.eventsToUnbind&&(w(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&w(a,function(a){z(a,\\\"updatedData\\\",this.updatedDataHandler)},this),a[0].xAxis&&z(a[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,f=\\ne.enabled,b=d?c.height:0,h=f?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled=f;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+h;this.opposite=t(c.opposite,!d&&a.inverted);var k=this,e=k.baseSeries,f=a.xAxis.length,l=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0]||{options:{}};D(a,\\\"getMargins\\\",function(){var b=k.opposite?\\\"plotTop\\\":\\\"marginBottom\\\";a.inverted&&(b=k.opposite?\\n\\\"marginRight\\\":\\\"plotLeft\\\");a[b]=(a[b]||0)+(d||!a.inverted?k.outlineHeight:0)+c.margin});a.isDirtyBox=!0;k.navigatorEnabled?(k.xAxis=new E(a,u({breaks:m.options.breaks,ordinal:m.options.ordinal},c.xAxis,{id:\\\"navigator-x-axis\\\",yAxis:\\\"navigator-y-axis\\\",isX:!0,type:\\\"datetime\\\",index:f,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),k.yAxis=new E(a,u(c.yAxis,{id:\\\"navigator-y-axis\\\",\\nalignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?k.updateNavigatorSeries(!1):0===a.series.length&&(k.unbindRedraw=D(a,\\\"beforeRedraw\\\",function(){0a.inArray(c,l)?(c&&(z(c,\\\"updatedData\\\",e.updatedDataHandler),\\ndelete c.navigatorSeries),b.destroy(),!1):!0});l&&l.length&&w(l,function(a){var b=a.navigatorSeries,g=c({color:a.color,visible:a.visible},k(p)?f.navigator.series:p);b&&!1===e.navigatorOptions.adaptToUpdatedData||(q.name=\\\"Navigator \\\"+l.length,m=a.options||{},t=m.navigatorOptions||{},n=u(m,q,g,t),g=t.data||g.data,e.hasNavigatorData=e.hasNavigatorData||!!g,n.data=g||m.data&&m.data.slice(0),b&&b.options?b.update(n,d):(a.navigatorSeries=h.initSeries(n),a.navigatorSeries.baseSeries=a,v.push(a.navigatorSeries)))});\\nif(p.data&&(!l||!l.length)||k(p))e.hasNavigatorData=!1,p=a.splat(p),w(p,function(a,b){q.name=\\\"Navigator \\\"+(v.length+1);n=u(f.navigator.series,{color:h.series[b]&&!h.series[b].options.isInternal&&h.series[b].color||h.options.colors[b]||h.options.colors[0]},q,a);n.data=a.data;n.data&&(e.hasNavigatorData=!0,v.push(h.initSeries(n)))});b&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&D(b[0].xAxis,\\\"foundExtremes\\\",this.modifyBaseAxisExtremes);\\nw(b,function(b){D(b,\\\"show\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)});D(b,\\\"hide\\\",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)});!1!==this.navigatorOptions.adaptToUpdatedData&&b.xAxis&&D(b,\\\"updatedData\\\",this.updatedDataHandler);D(b,\\\"remove\\\",function(){this.navigatorSeries&&(y(a.series,this.navigatorSeries),r(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=\\nthis.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),d=c.dataMin,e=c.dataMax,c=c.max-c.min,f=a.stickToMin,h=a.stickToMax,k=t(this.options.overscroll,0),l,m,n=a.series&&a.series[0],p=!!this.setExtremes;this.eventArgs&&\\\"rangeSelectorButton\\\"===this.eventArgs.trigger||(f&&(m=d,l=m+c),h&&(l=e+k,f||(m=Math.max(l-c,n&&n.xData?n.xData[0]:-Number.MAX_VALUE))),\\np&&(f||h)&&b(m)&&(this.min=this.userMin=m,this.max=this.userMax=l));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMax=a.xAxis.reversed?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=b(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!a.stickToMax);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){D(this.chart,\\n\\\"redraw\\\",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(y(this.chart.xAxis,this.xAxis),y(this.chart.axes,this.xAxis));this.yAxis&&(y(this.chart.yAxis,this.yAxis),y(this.chart.axes,this.yAxis));w(this.series||[],function(a){a.destroy&&a.destroy()});w(\\\"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered\\\".split(\\\" \\\"),\\nfunction(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);w([this.handles],function(a){A(a)},this)}};a.Navigator=C;l(E.prototype,\\\"zoom\\\",function(a,b,c){var d=this.chart,e=d.options,g=e.chart.zoomType,f=e.chart.pinchType,k=e.navigator,e=e.rangeSelector,l;this.isXAxis&&(k&&k.enabled||e&&e.enabled)&&(!h&&\\\"x\\\"===g||h&&\\\"x\\\"===f?d.resetZoomButton=\\\"blocked\\\":\\\"y\\\"===g?l=!1:(!h&&\\\"xy\\\"===g||h&&\\\"xy\\\"===f)&&this.options.range&&(d=this.previousZoom,r(b)?this.previousZoom=[this.min,this.max]:d&&(b=\\nd[0],c=d[1],delete this.previousZoom)));return void 0!==l?l:a.call(this,b,c)});D(q,\\\"beforeRender\\\",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});D(q,\\\"afterSetChartSize\\\",function(){var a=this.legend,b=this.navigator,c,d,e,f;b&&(d=a&&a.options,e=b.xAxis,f=b.yAxis,c=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-c-b.height:this.spacing[3]+c,b.top=this.plotTop+c):(b.left=this.plotLeft+c,b.top=b.navigatorOptions.top||\\nthis.chartHeight-b.height-c-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(d&&\\\"bottom\\\"===d.verticalAlign&&d.enabled&&!d.floating?a.legendHeight+t(d.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top=b.top,e.setAxisSize(),f.setAxisSize()))});D(q,\\\"update\\\",function(a){var b=a.options.navigator||{},c=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!c.enabled||(u(!0,this.options.navigator,\\nb),u(!0,this.options.scrollbar,c),delete a.options.navigator,delete a.options.scrollbar)});D(q,\\\"afterUpdate\\\",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new C(this))});l(v.prototype,\\\"addPoint\\\",function(a,b,c,d,f){var g=this.options.turboThreshold;g&&this.xData.length>g&&e(b,!0)&&this.chart.navigator&&p(20,!0);a.call(this,b,c,d,f)});D(q,\\\"afterAddSeries\\\",function(){this.navigator&&this.navigator.setBaseSeries(null,\\n!1)});D(v,\\\"afterUpdate\\\",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)});q.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(L);(function(a){function C(a){this.init(a)}var D=a.addEvent,E=a.Axis,q=a.Chart,n=a.css,f=a.createElement,r=a.defaultOptions,A=a.defined,w=a.destroyObjectProperties,y=a.discardElement,p=a.each,c=a.extend,d=a.fireEvent,m=a.isNumber,k=a.merge,b=a.pick,\\ne=a.pInt,h=a.splat,u=a.wrap;c(r,{rangeSelector:{verticalAlign:\\\"top\\\",buttonTheme:{\\\"stroke-width\\\":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:\\\"right\\\",x:0,y:0},buttonPosition:{align:\\\"left\\\",x:0,y:0},labelStyle:{color:\\\"#666666\\\"}}});r.lang=k(r.lang,{rangeSelectorZoom:\\\"Zoom\\\",rangeSelectorFrom:\\\"From\\\",rangeSelectorTo:\\\"To\\\"});C.prototype={clickButton:function(a,c){var d=this,e=d.chart,f=d.buttonOptions[a],k=e.xAxis[0],n=e.scroller&&e.scroller.getUnionExtremes()||\\nk||{},t=n.dataMin,q=n.dataMax,r,g=k&&Math.round(Math.min(k.max,b(q,k.max))),u=f.type,z,n=f._range,w,y,A,C=f.dataGrouping;if(null!==t&&null!==q){e.fixedRange=n;C&&(this.forcedDataGrouping=!0,E.prototype.setDataGrouping.call(k||{chart:this.chart},C,!1));if(\\\"month\\\"===u||\\\"year\\\"===u)k?(u={range:f,max:g,chart:e,dataMin:t,dataMax:q},r=k.minFromRange.call(u),m(u.newMax)&&(g=u.newMax)):n=f;else if(n)r=Math.max(g-n,t),g=Math.min(r+n,q);else if(\\\"ytd\\\"===u)if(k)void 0===q&&(t=Number.MAX_VALUE,q=Number.MIN_VALUE,\\np(e.series,function(a){a=a.xData;t=Math.min(a[0],t);q=Math.max(a[a.length-1],q)}),c=!1),g=d.getYTDExtremes(q,t,e.time.useUTC),r=w=g.min,g=g.max;else{D(e,\\\"beforeRender\\\",function(){d.clickButton(a)});return}else\\\"all\\\"===u&&k&&(r=t,g=q);r+=f._offsetMin;g+=f._offsetMax;d.setSelected(a);k?k.setExtremes(r,g,b(c,1),null,{trigger:\\\"rangeSelectorButton\\\",rangeSelectorButton:f}):(z=h(e.options.xAxis)[0],A=z.range,z.range=n,y=z.min,z.min=w,D(e,\\\"load\\\",function(){z.range=A;z.min=y}))}},setSelected:function(a){this.selected=\\nthis.options.selected=a},defaultButtons:[{type:\\\"month\\\",count:1,text:\\\"1m\\\"},{type:\\\"month\\\",count:3,text:\\\"3m\\\"},{type:\\\"month\\\",count:6,text:\\\"6m\\\"},{type:\\\"ytd\\\",text:\\\"YTD\\\"},{type:\\\"year\\\",count:1,text:\\\"1y\\\"},{type:\\\"all\\\",text:\\\"All\\\"}],init:function(a){var b=this,c=a.options.rangeSelector,e=c.buttons||[].concat(b.defaultButtons),f=c.selected,h=function(){var a=b.minInput,c=b.maxInput;a&&a.blur&&d(a,\\\"blur\\\");c&&c.blur&&d(c,\\\"blur\\\")};b.chart=a;b.options=c;b.buttons=[];a.extraTopMargin=c.height;b.buttonOptions=e;this.unMouseDown=\\nD(a.container,\\\"mousedown\\\",h);this.unResize=D(a,\\\"resize\\\",h);p(e,b.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);D(a,\\\"load\\\",function(){a.xAxis&&a.xAxis[0]&&D(a.xAxis[0],\\\"setExtremes\\\",function(c){this.max-this.min!==a.fixedRange&&\\\"rangeSelectorButton\\\"!==c.trigger&&\\\"updatedData\\\"!==c.trigger&&b.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,b=a.xAxis[0],c=Math.round(b.max-b.min),d=!b.hasVisibleSeries,e=a.scroller&&a.scroller.getUnionExtremes()||\\nb,f=e.dataMin,h=e.dataMax,a=this.getYTDExtremes(h,f,a.time.useUTC),k=a.min,n=a.max,q=this.selected,g=m(q),r=this.options.allButtonsEnabled,u=this.buttons;p(this.buttonOptions,function(a,e){var l=a._range,m=a.type,p=a.count||1,t=u[e],v=0;a=a._offsetMax-a._offsetMin;e=e===q;var z=l>h-f,w=l=864E5*{month:28,year:365}[m]*p-a&&c-36E5<=864E5*{month:31,year:366}[m]*p+a?l=!0:\\\"ytd\\\"===m?(l=n-k+a===c,x=!e):\\\"all\\\"===m&&(l=b.max-b.min>=h-f,B=!e&&g&&\\nl);m=!r&&(z||w||B||d);p=e&&l||l&&!g&&!x;m?v=3:p&&(g=!0,v=2);t.state!==v&&t.setState(v)})},computeButtonRange:function(a){var c=a.type,d=a.count||1,e={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(e[c])a._range=e[c]*d;else if(\\\"month\\\"===c||\\\"year\\\"===c)a._range=864E5*{month:30,year:365}[c]*d;a._offsetMin=b(a.offsetMin,0);a._offsetMax=b(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this.chart.time,e=this[a+\\n\\\"Input\\\"];A(b)&&(e.previousValue=e.HCTime,e.HCTime=b);e.value=d.dateFormat(c.inputEditDateFormat||\\\"%Y-%m-%d\\\",e.HCTime);this[a+\\\"DateBox\\\"].attr({text:d.dateFormat(c.inputDateFormat||\\\"%b %e, %Y\\\",e.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+\\\"DateBox\\\"];n(this[a+\\\"Input\\\"],{left:b.translateX+c.x+\\\"px\\\",top:b.translateY+\\\"px\\\",width:c.width-2+\\\"px\\\",height:c.height-2+\\\"px\\\",border:\\\"2px solid silver\\\"})},hideInput:function(a){n(this[a+\\\"Input\\\"],{border:0,width:\\\"1px\\\",height:\\\"1px\\\"});this.setInputValue(a)},\\ndrawInput:function(a){function b(){var a=w.value,b=(q.inputDateParser||Date.parse)(a),c=h.xAxis[0],g=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:c,f=g.dataMin,g=g.dataMax;b!==w.previousValue&&(w.previousValue=b,m(b)||(b=a.split(\\\"-\\\"),b=Date.UTC(e(b[0]),e(b[1])-1,e(b[2]))),m(b)&&(h.time.useUTC||(b+=6E4*(new Date).getTimezoneOffset()),u?b>d.maxInput.HCTime?b=void 0:bg&&(b=g),void 0!==b&&c.setExtremes(u?b:c.min,u?c.max:b,void 0,void 0,{trigger:\\\"rangeSelectorInput\\\"})))}\\nvar d=this,h=d.chart,p=h.renderer.style||{},l=h.renderer,q=h.options.rangeSelector,t=d.div,u=\\\"min\\\"===a,w,g,x=this.inputGroup;this[a+\\\"Label\\\"]=g=l.label(r.lang[u?\\\"rangeSelectorFrom\\\":\\\"rangeSelectorTo\\\"],this.inputGroup.offset).addClass(\\\"highcharts-range-label\\\").attr({padding:2}).add(x);x.offset+=g.width+5;this[a+\\\"DateBox\\\"]=l=l.label(\\\"\\\",x.offset).addClass(\\\"highcharts-range-input\\\").attr({padding:2,width:q.inputBoxWidth||90,height:q.inputBoxHeight||17,stroke:q.inputBoxBorderColor||\\\"#cccccc\\\",\\\"stroke-width\\\":1,\\n\\\"text-align\\\":\\\"center\\\"}).on(\\\"click\\\",function(){d.showInput(a);d[a+\\\"Input\\\"].focus()}).add(x);x.offset+=l.width+(u?10:0);this[a+\\\"Input\\\"]=w=f(\\\"input\\\",{name:a,className:\\\"highcharts-range-selector\\\",type:\\\"text\\\"},{top:h.plotTop+\\\"px\\\"},t);g.css(k(p,q.labelStyle));l.css(k({color:\\\"#333333\\\"},p,q.inputStyle));n(w,c({position:\\\"absolute\\\",border:0,width:\\\"1px\\\",height:\\\"1px\\\",padding:0,textAlign:\\\"center\\\",fontSize:p.fontSize,fontFamily:p.fontFamily,top:\\\"-9999em\\\"},q.inputStyle));w.onfocus=function(){d.showInput(a)};w.onblur=\\nfunction(){d.hideInput(a)};w.onchange=b;w.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=\\\"top\\\"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}},getYTDExtremes:function(a,b,c){var d=this.chart.time,e=new d.Date(a),f=d.get(\\\"FullYear\\\",e);c=c?d.Date.UTC(f,0,1):+new d.Date(f,0,1);b=Math.max(b||0,c);e=e.getTime();return{max:Math.min(a||e,e),min:b}},render:function(a,c){var d=\\nthis,e=d.chart,h=e.renderer,k=e.container,m=e.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions,q=r.lang,t=d.div,g=m.rangeSelector,m=g.floating,u=d.buttons,t=d.inputGroup,w=g.buttonTheme,z=g.buttonPosition,y=g.inputPosition,A=g.inputEnabled,C=w&&w.states,D=e.plotLeft,E,L=d.buttonGroup,R;R=d.rendered;var Y=d.options.verticalAlign,aa=e.legend,ba=aa&&aa.options,ca=z.y,Z=y.y,da=R||!1,X=0,U=0,V;if(!1!==g.enabled){R||(d.group=R=h.g(\\\"range-selector-group\\\").attr({zIndex:7}).add(),\\nd.buttonGroup=L=h.g(\\\"range-selector-buttons\\\").add(R),d.zoomText=h.text(q.rangeSelectorZoom,b(D+z.x,D),15).css(g.labelStyle).add(L),E=b(D+z.x,D)+d.zoomText.getBBox().width+5,p(d.buttonOptions,function(a,c){u[c]=h.button(a.text,E,0,function(){var b=a.events&&a.events.click,e;b&&(e=b.call(a));!1!==e&&d.clickButton(c);d.isActive=!0},w,C&&C.hover,C&&C.select,C&&C.disabled).attr({\\\"text-align\\\":\\\"center\\\"}).add(L);E+=u[c].width+b(g.buttonSpacing,5)}),!1!==A&&(d.div=t=f(\\\"div\\\",null,{position:\\\"relative\\\",height:0,\\nzIndex:1}),k.parentNode.insertBefore(t,k),d.inputGroup=t=h.g(\\\"input-group\\\").add(R),t.offset=0,d.drawInput(\\\"min\\\"),d.drawInput(\\\"max\\\")));D=e.plotLeft-e.spacing[3];d.updateButtonStates();n&&this.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===z.align&&z.y+L.getBBox().height-12<(n.y||0)+n.height&&(X=-40);\\\"left\\\"===z.align?V=z.x-e.spacing[3]:\\\"right\\\"===z.align&&(V=z.x+X-e.spacing[1]);L.align({y:z.y,width:L.getBBox().width,align:z.align,x:V},!0,e.spacingBox);d.group.placed=da;d.buttonGroup.placed=da;!1!==A&&(X=n&&\\nthis.titleCollision(e)&&\\\"top\\\"===Y&&\\\"right\\\"===y.align&&y.y-t.getBBox().height-12<(n.y||0)+n.height+e.spacing[0]?-40:0,\\\"left\\\"===y.align?V=D:\\\"right\\\"===y.align&&(V=-Math.max(e.axisOffset[1],-X)),t.align({y:y.y,width:t.getBBox().width,align:y.align,x:y.x+V-2},!0,e.spacingBox),k=t.alignAttr.translateX+t.alignOptions.x-X+t.getBBox().x+2,n=t.alignOptions.width,q=L.alignAttr.translateX+L.getBBox().x,V=L.getBBox().width+20,(y.align===z.align||q+V>k&&k+n>q&&ca=-X?0:-X),translateY:t.alignAttr.translateY+L.getBBox().height+10}),d.setInputValue(\\\"min\\\",a),d.setInputValue(\\\"max\\\",c),d.inputGroup.placed=da);d.group.align({verticalAlign:Y},!0,e.spacingBox);a=d.group.getBBox().height+20;c=d.group.alignAttr.translateY;\\\"bottom\\\"===Y&&(aa=ba&&\\\"bottom\\\"===ba.verticalAlign&&ba.enabled&&!ba.floating?aa.legendHeight+b(ba.margin,10):0,a=a+aa-20,U=c-a-(m?0:g.y)-10);if(\\\"top\\\"===Y)m&&(U=0),e.titleOffset&&(U=e.titleOffset+e.options.title.margin),U+=e.margin[0]-\\ne.spacing[0]||0;else if(\\\"middle\\\"===Y)if(Z===ca)U=0>Z?c+void 0:c;else if(Z||ca)U=0>Z||0>ca?U-Math.min(Z,ca):c-a+NaN;d.group.translate(g.x,g.y+Math.floor(U));!1!==A&&(d.minInput.style.marginTop=d.group.translateY+\\\"px\\\",d.maxInput.style.marginTop=d.group.translateY+\\\"px\\\");d.rendered=!0}},getHeight:function(){var a=this.options,b=this.group,c=a.y,d=a.buttonPosition.y,a=a.inputPosition.y,b=b?b.getBBox(!0).height+13+c:0,c=Math.min(a,d);if(0>a&&0>d||0d&&(e?a=c-f:c=a+f);m(a)&&m(c)||(a=c=void 0);return{min:a,max:c}};E.prototype.minFromRange=function(){var a=this.range,c={month:\\\"Month\\\",year:\\\"FullYear\\\"}[a.type],d,e=this.max,f,h,k=function(a,b){var d=new Date(a),e=d[\\\"get\\\"+c]();d[\\\"set\\\"+c](e+b);e===d[\\\"get\\\"+c]()&&d.setDate(0);return d.getTime()-a};m(a)?(d=e-a,h=a):(d=e+k(e,-a.count),this.chart&&(this.chart.fixedRange=\\ne-d));f=b(this.dataMin,Number.MIN_VALUE);m(d)||(d=f);d<=f&&(d=f,void 0===h&&(h=k(d,a.count)),this.newMax=Math.min(d+h,this.dataMax));m(e)||(d=void 0);return d};D(q,\\\"afterGetContainer\\\",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});u(q.prototype,\\\"render\\\",function(a,b,c){var d=this.axes,e=this.rangeSelector;e&&(p(d,function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),e.render(),d=e.options.verticalAlign,e.options.floating||(\\\"bottom\\\"===d?this.extraBottomMargin=\\n!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0)));a.call(this,b,c)});D(q,\\\"update\\\",function(a){var b=a.options;a=this.rangeSelector;this.extraTopMargin=this.extraBottomMargin=!1;this.isDirtyBox=!0;a&&(a.render(),b=b.rangeSelector&&b.rangeSelector.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||(\\\"bottom\\\"===b?this.extraBottomMargin=!0:\\\"middle\\\"!==b&&(this.extraTopMargin=!0)))});u(q.prototype,\\\"redraw\\\",function(a,b,c){var d=this.rangeSelector;d&&!d.options.floating&&(d.render(),d=d.options.verticalAlign,\\n\\\"bottom\\\"===d?this.extraBottomMargin=!0:\\\"middle\\\"!==d&&(this.extraTopMargin=!0));a.call(this,b,c)});D(q,\\\"getMargins\\\",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});q.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();m(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=D(a.xAxis[0],\\\"afterSetExtremes\\\",function(a){d.render(a.min,a.max)}),e=D(a,\\\"redraw\\\",b),b());D(a,\\\"destroy\\\",\\nfunction(){d&&(e(),f())})});a.RangeSelector=C})(L);(function(a){var C=a.addEvent,D=a.arrayMax,E=a.arrayMin,q=a.Axis,n=a.Chart,f=a.defined,r=a.each,A=a.extend,w=a.format,y=a.grep,p=a.inArray,c=a.isNumber,d=a.isString,m=a.map,k=a.merge,b=a.pick,e=a.Point,h=a.Renderer,u=a.Series,t=a.splat,z=a.SVGRenderer,I=a.VMLRenderer,v=a.wrap,G=u.prototype,l=G.init,H=G.processData,K=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,g){var f=d(c)||c.nodeName,h=arguments[f?1:0],l=h.series,p=a.getOptions(),\\nq,r=b(h.navigator&&h.navigator.enabled,p.navigator.enabled,!0),u=r?{startOnTick:!1,endOnTick:!1}:null,w={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};h.xAxis=m(t(h.xAxis||{}),function(a,b){return k({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:\\\"justify\\\"},showLastLabel:!0},p.xAxis,p.xAxis&&p.xAxis[b],a,{type:\\\"datetime\\\",categories:null},u)});h.yAxis=m(t(h.yAxis||{}),function(a,c){q=b(a.opposite,!0);return k({labels:{y:-2},opposite:q,showLastLabel:!(!a.categories&&\\n\\\"category\\\"!==a.type),title:{text:null}},p.yAxis,p.yAxis&&p.yAxis[c],a)});h.series=null;h=k({chart:{panning:!0,pinchType:\\\"x\\\"},navigator:{enabled:r},scrollbar:{enabled:b(p.scrollbar.enabled,!0)},rangeSelector:{enabled:b(p.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:b(p.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:w,spline:w,area:w,areaspline:w,arearange:w,areasplinerange:w,column:v,columnrange:v,candlestick:v,ohlc:v}},h,{isStock:!0});h.series=l;return f?new n(c,\\nh,g):new n(h,e)};v(q.prototype,\\\"autoLabelAlign\\\",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&\\\"yAxis\\\"===this.coll&&(c=c.top+\\\",\\\"+c.height,!b[c]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align=\\\"right\\\"),b[c]=this,\\\"right\\\"):a.apply(this,[].slice.call(arguments,1))});C(q,\\\"destroy\\\",function(){var a=this.chart,b=this.options&&this.options.top+\\\",\\\"+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&\\ndelete a._labelPanes[b]});v(q.prototype,\\\"getPlotLinePath\\\",function(e,h,g,k,l,n){var q=this,u=this.isLinked&&!this.series?this.linkedParent.series:this.series,t=q.chart,w=t.renderer,v=q.left,x=q.top,y,z,B,A,F=[],C=[],D,E;if(\\\"xAxis\\\"!==q.coll&&\\\"yAxis\\\"!==q.coll)return e.apply(this,[].slice.call(arguments,1));C=function(a){var b=\\\"xAxis\\\"===a?\\\"yAxis\\\":\\\"xAxis\\\";a=q.options[b];return c(a)?[t[b][a]]:d(a)?[t.get(a)]:m(u,function(a){return a[b]})}(q.coll);r(q.isXAxis?t.yAxis:t.xAxis,function(a){if(f(a.options.id)?\\n-1===a.options.id.indexOf(\\\"navigator\\\"):1){var b=a.isXAxis?\\\"yAxis\\\":\\\"xAxis\\\",b=f(a.options[b])?t[b][a.options[b]]:t[b][0];q===b&&C.push(a)}});D=C.length?[]:[q.isXAxis?t.yAxis[0]:t.xAxis[0]];r(C,function(b){-1!==p(b,D)||a.find(D,function(a){return a.pos===b.pos&&a.len&&b.len})||D.push(b)});E=b(n,q.translate(h,null,null,k));c(E)&&(q.horiz?r(D,function(a){var b;z=a.pos;A=z+a.len;y=B=Math.round(E+q.transB);if(yv+q.width)l?y=B=Math.min(Math.max(v,y),v+q.width):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}):r(D,\\nfunction(a){var b;y=a.pos;B=y+a.len;z=A=Math.round(x+q.height-E);if(zx+q.height)l?z=A=Math.min(Math.max(x,z),q.top+q.height):b=!0;b||F.push(\\\"M\\\",y,z,\\\"L\\\",B,A)}));return 0this.max?\\\"hidden\\\":\\\"visible\\\"});h=m.getBBox();if(k){if(q&&!c||!q&&c)l=m.y-h.height}else l=m.y-h.height/2;k?(c=d-h.x,d=d+this.width-\\nh.x):(c=\\\"left\\\"===this.labelAlign?d:0,d=\\\"right\\\"===this.labelAlign?d+this.width:e.chartWidth);m.translateX=d&&(t=-(m.translateX+h.width-d));m.attr({x:a+t,y:l,anchorX:k?a:this.opposite?0:e.chartWidth,anchorY:k?this.opposite?e.chartHeight:0:l+h.height/2})}});G.init=function(){l.apply(this,arguments);this.setCompare(this.options.compare)};G.setCompare=function(a){this.modifyValue=\\\"value\\\"===a||\\\"percent\\\"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&\\nvoid 0!==d)return b=\\\"value\\\"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};G.processData=function(){var a,b=-1,d,e,f=!0===this.options.compareStart?0:1,h,k;H.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData,e=this.processedYData,h=e.length,this.pointArrayMap&&(b=p(\\\"close\\\",this.pointArrayMap),-1===b&&(b=p(this.pointValKey||\\\"y\\\",this.pointArrayMap))),a=0;a=this.xAxis.min&&0!==k){this.compareValue=k;break}};v(G,\\\"getExtremes\\\",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=E(b),this.dataMax=D(b))});q.prototype.setCompare=function(a,c){this.isXAxis||(r(this.series,function(b){b.setCompare(a)}),b(c,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace(\\\"{point.change}\\\",(0n?this:a,a=(n.max-n.min)*n.transA,n.pixelPadding=n.len-a,n.minPixelPadding=\\nn.pixelPadding/2,a=n.fixTo)){a=a[1]-n.toValue(a[0],!0);a*=n.transA;if(Math.abs(a)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)a=0;n.minPixelPadding-=a}});m(g,\\\"render\\\",function(){this.fixTo=null})})(w);(function(a){var m=a.addEvent,g=a.Axis,l=a.Chart,f=a.color,q,n=a.each,u=a.extend,r=a.isNumber,e=a.Legend,b=a.LegendSymbolMixin,d=a.noop,h=a.merge,v=a.pick;a.ColorAxis||(q=a.ColorAxis=function(){this.init.apply(this,arguments)},u(q.prototype,g.prototype),u(q.prototype,{defaultColorAxisOptions:{lineWidth:0,\\nminPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:\\\"#999999\\\"},labels:{overflow:\\\"justify\\\",rotation:0},minColor:\\\"#e6ebf5\\\",maxColor:\\\"#003399\\\",tickLength:5,showInLegend:!0},keepProps:[\\\"legendGroup\\\",\\\"legendItemHeight\\\",\\\"legendItemWidth\\\",\\\"legendItem\\\",\\\"legendSymbol\\\"].concat(g.prototype.keepProps),init:function(a,c){var k=\\\"vertical\\\"!==a.options.legend.layout,b;this.coll=\\\"colorAxis\\\";b=h(this.defaultColorAxisOptions,\\n{side:k?2:1,reversed:!k},c,{opposite:!k,showEmpty:!1,title:null,visible:a.options.legend.enabled});g.prototype.init.call(this,a,b);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=k;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(a){var c=this.chart,k,b=0,p=c.options.chart.colorCount,d=this.options,e=a.dataClasses.length;this.dataClasses=k=[];this.legendItems=[];n(a.dataClasses,function(a,t){a=h(a);k.push(a);a.color||(\\\"category\\\"===d.dataClassColor?(t=c.options.colors,\\np=t.length,a.color=t[b],a.colorIndex=b,b++,b===p&&(b=0)):a.color=f(d.minColor).tweenTo(f(d.maxColor),2>e?.5:t/(e-1)))})},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];n(this.stops,function(a){a.color=f(a[1])})},setOptions:function(a){g.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,\\nc=this.chart,k=c.options.legend||{},b,d;a?(this.left=k=a.attr(\\\"x\\\"),this.top=b=a.attr(\\\"y\\\"),this.width=d=a.attr(\\\"width\\\"),this.height=a=a.attr(\\\"height\\\"),this.right=c.chartWidth-k-d,this.bottom=c.chartHeight-b-a,this.len=this.horiz?d:a,this.pos=this.horiz?k:b):this.len=(this.horiz?k.symbolWidth:k.symbolHeight)||this.defaultLegendLength},normalizedValue:function(a){this.isLog&&(a=this.val2lin(a));return 1-(this.max-a)/(this.max-this.min||1)},toColor:function(a,c){var k=this.stops,b,p,d=this.dataClasses,\\ne,h;if(d)for(h=d.length;h--;){if(e=d[h],b=e.from,k=e.to,(void 0===b||a>=b)&&(void 0===k||a<=k)){p=e.color;c&&(c.dataClass=h,c.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=k.length;h--&&!(a>k[h][0]););b=k[h]||k[h+1];k=k[h+1]||b;a=1-(k[0]-a)/(k[0]-b[0]||1);p=b.color.tweenTo(k.color,a)}return p},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=\\nthis.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:this.stops}},drawLegendSymbol:function(a,c){var k=a.padding,b=a.options,d=this.horiz,p=v(b.symbolWidth,d?this.defaultLegendLength:12),e=v(b.symbolHeight,d?12:this.defaultLegendLength),h=v(b.labelPadding,d?16:30),b=v(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,\\na.baseline-11,p,e).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=p+k+(d?b:h);this.legendItemHeight=e+k+(d?h:0)},setState:function(a){n(this.series,function(c){c.setState(a)})},visible:!0,setVisible:d,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)a[c].getExtremes(),void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var k=\\nc&&c.plotX,b=c&&c.plotY,d,e=this.pos,p=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),de+p&&(d=e+p+2),c.plotX=d,c.plotY=this.len-d,g.prototype.drawCrosshair.call(this,a,c),c.plotX=k,c.plotY=b,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass(\\\"highcharts-coloraxis-marker\\\").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,c,k,b,d){return r(d)?this.horiz?[\\\"M\\\",d-4,this.top-6,\\\"L\\\",\\nd+4,this.top-6,d,this.top,\\\"Z\\\"]:[\\\"M\\\",this.left,d,\\\"L\\\",this.left-6,d+6,this.left-6,d-6,\\\"Z\\\"]:g.prototype.getPlotLinePath.call(this,a,c,k,b)},update:function(a,c){var k=this.chart,b=k.legend;n(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&b.allItems&&(n(b.allItems,function(a){a.isDataClass&&a.legendGroup&&a.legendGroup.destroy()}),k.isDirtyLegend=!0);k.options[this.coll]=h(this.userOptions,a);g.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},\\nremove:function(){this.legendItem&&this.chart.legend.destroyItem(this);g.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e=this,c=this.chart,k=this.legendItems,t=c.options.legend,h=t.valueDecimals,v=t.valueSuffix||\\\"\\\",f;k.length||n(this.dataClasses,function(p,t){var q=!0,x=p.from,g=p.to;f=\\\"\\\";void 0===x?f=\\\"\\\\x3c \\\":void 0===g&&(f=\\\"\\\\x3e \\\");void 0!==x&&(f+=a.numberFormat(x,h)+v);void 0!==x&&void 0!==g&&(f+=\\\" - \\\");void 0!==g&&(f+=a.numberFormat(g,h)+v);k.push(u({chart:c,name:f,options:{},\\ndrawLegendSymbol:b.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=this.visible=!q;n(e.series,function(a){n(a.points,function(a){a.dataClass===t&&a.setVisible(q)})});c.legend.colorizeItem(this,q)}},p))});return k},name:\\\"\\\"}),n([\\\"fill\\\",\\\"stroke\\\"],function(b){a.Fx.prototype[b+\\\"Setter\\\"]=function(){this.elem.attr(b,f(this.start).tweenTo(f(this.end),this.pos),null,!0)}}),m(l,\\\"afterGetAxes\\\",function(){var a=this.options.colorAxis;this.colorAxis=[];a&&new q(this,a)}),m(e,\\\"afterGetAllItems\\\",\\nfunction(b){var c=[],k=this.chart.colorAxis[0];k&&k.options&&k.options.showInLegend&&(k.options.dataClasses?c=k.getDataClassLegendSymbols():c.push(k),n(k.series,function(c){a.erase(b.allItems,c)}));for(k=c.length;k--;)b.allItems.unshift(c[k])}),m(e,\\\"afterColorizeItem\\\",function(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}),m(e,\\\"afterUpdate\\\",function(a,c,b){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},b)}))})(w);(function(a){var m=a.defined,g=\\na.each,l=a.noop,f=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setVisible:function(a){var f=this,q=a?\\\"show\\\":\\\"hide\\\";g([\\\"graphic\\\",\\\"dataLabel\\\"],function(a){if(f[a])f[a][q]()})},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:\\\"hover\\\"===f?1:0})}};a.colorSeriesMixin={pointArrayMap:[\\\"value\\\"],axisTypes:[\\\"xAxis\\\",\\\"yAxis\\\",\\\"colorAxis\\\"],optionalAxis:\\\"colorAxis\\\",trackerGroups:[\\\"group\\\",\\n\\\"markerGroup\\\",\\\"dataLabelsGroup\\\"],getSymbol:l,parallelArrays:[\\\"x\\\",\\\"y\\\",\\\"value\\\"],colorKey:\\\"value\\\",pointAttribs:f.column.prototype.pointAttribs,translateColors:function(){var a=this,f=this.options.nullColor,l=this.colorAxis,m=this.colorKey;g(this.data,function(e){var b=e[m];if(b=e.options.color||(e.isNull?f:l&&void 0!==b?l.toColor(b,e):e.color||a.color))e.color=b})},colorAttribs:function(a){var f={};m(a.color)&&(f[this.colorProp||\\\"fill\\\"]=a.color);return f}}})(w);(function(a){function m(a){a&&(a.preventDefault&&\\na.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function g(a){this.init(a)}var l=a.addEvent,f=a.Chart,q=a.doc,n=a.each,u=a.extend,r=a.merge,e=a.pick;g.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};g.prototype.update=function(b){var d=this.chart,h=d.options.mapNavigation,f,p,c,k,t,x=function(a){this.handler.call(d,a);m(a)},g=d.mapNavButtons;b&&(h=d.options.mapNavigation=r(d.options.mapNavigation,b));for(;g.length;)g.pop().destroy();e(h.enableButtons,h.enabled)&&\\n!d.renderer.forExport&&a.objectEach(h.buttons,function(a,b){f=r(h.buttonOptions,a);p=f.theme;p.style=r(f.theme.style,f.style);k=(c=p.states)&&c.hover;t=c&&c.select;a=d.renderer.button(f.text,0,0,x,p,k,t,0,\\\"zoomIn\\\"===b?\\\"topbutton\\\":\\\"bottombutton\\\").addClass(\\\"highcharts-map-navigation\\\").attr({width:f.width,height:f.height,title:d.options.lang[b],padding:f.padding,zIndex:5}).add();a.handler=f.onclick;a.align(u(f,{width:a.width,height:2*a.height}),null,f.alignTo);l(a.element,\\\"dblclick\\\",m);g.push(a)});this.updateEvents(h)};\\ng.prototype.updateEvents=function(a){var b=this.chart;e(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,\\\"dblclick\\\",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());e(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?\\\"DOMMouseScroll\\\":\\\"mousewheel\\\",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):\\nthis.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};u(f.prototype,{fitToBox:function(a,d){n([[\\\"x\\\",\\\"width\\\"],[\\\"y\\\",\\\"height\\\"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>d[e]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[e]=d[e]):a[e]=d[e]+d[b]-a[b]);a[b]>d[b]&&(a[b]=d[b]);a[e]=c.dataMax-c.dataMin&&b.y<=k.dataMin&&b.height>=k.dataMax-k.dataMin;g&&(c.fixTo=[g-c.pos,d]);p&&(k.fixTo=[p-k.pos,f]);void 0===a||h?(c.setExtremes(void 0,void 0,!1),k.setExtremes(void 0,void 0,!1)):(c.setExtremes(b.x,b.x+b.width,!1),k.setExtremes(b.y,b.y+b.height,!1));this.redraw()}});l(f,\\\"beforeRender\\\",function(){this.mapNavigation=new g(this);this.mapNavigation.update()})})(w);\\n(function(a){var m=a.extend,g=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var f=this.chart;a=this.normalize(a);f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(a.target,\\\"highcharts-tracker\\\")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(.5,f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var f=this.chart,g;a=this.normalize(a);g=a.detail||\\n-(a.wheelDelta/120);f.isInsidePlot(a.chartX-f.plotLeft,a.chartY-f.plotTop)&&f.mapZoom(Math.pow(f.options.mapNavigation.mouseWheelSensitivity,g),f.xAxis[0].toValue(a.chartX),f.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,\\\"zoomOption\\\",function(a){var f=this.chart.options.mapNavigation;g(f.enableTouchZoom,f.enabled)&&(this.chart.options.chart.pinchType=\\\"xy\\\");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,\\\"pinchTranslate\\\",function(a,g,n,l,m,e,b){a.call(this,g,n,l,m,e,b);\\\"map\\\"===\\nthis.chart.options.chart.type&&this.hasZoom&&(a=l.scaleX>l.scaleY,this.pinchTranslateDirection(!a,g,n,l,m,e,b,a?l.scaleX:l.scaleY))})})(w);(function(a){var m=a.colorPointMixin,g=a.each,l=a.extend,f=a.isNumber,q=a.map,n=a.merge,u=a.noop,r=a.pick,e=a.isArray,b=a.Point,d=a.Series,h=a.seriesType,v=a.seriesTypes,p=a.splat;h(\\\"map\\\",\\\"scatter\\\",{allAreas:!0,animation:!1,nullColor:\\\"#f7f7f7\\\",borderColor:\\\"#cccccc\\\",borderWidth:1,marker:null,stickyTracking:!1,joinBy:\\\"hc-key\\\",dataLabels:{formatter:function(){return this.point.value},\\ninside:!0,verticalAlign:\\\"middle\\\",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:\\\"{point.name}: {point.value}\\\\x3cbr/\\\\x3e\\\"},states:{normal:{animation:!0},hover:{halo:null,brightness:.2},select:{color:\\\"#cccccc\\\"}}},n(a.colorSeriesMixin,{type:\\\"map\\\",getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:[\\\"value\\\"],getBox:function(c){var b=Number.MAX_VALUE,d=-b,e=b,p=-b,h=b,n=b,l=this.xAxis,v=this.yAxis,q;\\ng(c||[],function(c){if(c.path){\\\"string\\\"===typeof c.path&&(c.path=a.splitPath(c.path));var k=c.path||[],t=k.length,g=!1,l=-b,x=b,v=-b,A=b,m=c.properties;if(!c._foundBox){for(;t--;)f(k[t])&&(g?(l=Math.max(l,k[t]),x=Math.min(x,k[t])):(v=Math.max(v,k[t]),A=Math.min(A,k[t])),g=!g);c._midX=x+(l-x)*r(c.middleX,m&&m[\\\"hc-middle-x\\\"],.5);c._midY=A+(v-A)*r(c.middleY,m&&m[\\\"hc-middle-y\\\"],.5);c._maxX=l;c._minX=x;c._maxY=v;c._minY=A;c.labelrank=r(c.labelrank,(l-x)*(v-A));c._foundBox=!0}d=Math.max(d,c._maxX);e=Math.min(e,\\nc._minX);p=Math.max(p,c._maxY);h=Math.min(h,c._minY);n=Math.min(c._maxX-c._minX,c._maxY-c._minY,n);q=!0}});q&&(this.minY=Math.min(h,r(this.minY,b)),this.maxY=Math.max(p,r(this.maxY,-b)),this.minX=Math.min(e,r(this.minX,b)),this.maxX=Math.max(d,r(this.maxX,-b)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*n,(this.maxX-this.minX)/5,l.minRange||b)),v&&void 0===v.options.minRange&&(v.minRange=Math.min(5*n,(this.maxY-this.minY)/5,v.minRange||b)))},getExtremes:function(){d.prototype.getExtremes.call(this,\\nthis.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var c=!1,b=this.xAxis,d=this.yAxis,e=b.min,p=b.transA,b=b.minPixelPadding,h=d.min,g=d.transA,d=d.minPixelPadding,l,n=[];if(a)for(l=a.length;l--;)f(a[l])?(n[l]=c?(a[l]-e)*p+b:(a[l]-h)*g+d,c=!c):n[l]=a[l];return n},setData:function(c,b,h,l){var k=this.options,t=this.chart.options.chart,\\nv=t&&t.map,x=k.mapData,m=k.joinBy,r=null===m,u=k.keys||this.pointArrayMap,z=[],w={},y=this.chart.mapTransforms;!x&&v&&(x=\\\"string\\\"===typeof v?a.maps[v]:v);r&&(m=\\\"_i\\\");m=this.joinBy=p(m);m[1]||(m[1]=m[0]);c&&g(c,function(b,d){var p=0;if(f(b))c[d]={value:b};else if(e(b)){c[d]={};!k.keys&&b.length>u.length&&\\\"string\\\"===typeof b[0]&&(c[d][\\\"hc-key\\\"]=b[0],++p);for(var t=0;th&&.99l&&(l=h=1,n=Math.round(n),m=Math.round(m)),r=this.transformGroup,p.renderer.globalAnimation?(u=r.attr(\\\"translateX\\\"),w=r.attr(\\\"translateY\\\"),\\nE=r.attr(\\\"scaleX\\\"),F=r.attr(\\\"scaleY\\\"),r.attr({animator:0}).animate({animator:1},{step:function(a,b){r.attr({translateX:u+(n-u)*b.pos,translateY:w+(m-w)*b.pos,scaleX:E+(h-E)*b.pos,scaleY:F+(l-F)*b.pos})}})):r.attr({translateX:n,translateY:m,scaleX:h,scaleY:l}));e.element.setAttribute(\\\"stroke-width\\\",(a.options[a.pointAttrToOptions&&a.pointAttrToOptions[\\\"stroke-width\\\"]||\\\"borderWidth\\\"]||1)/(h||1));this.drawMapDataLabels()},drawMapDataLabels:function(){d.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&\\nthis.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=d.prototype.render;a.chart.renderer.isVML&&3E3=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:e,width:2*e,height:2*e}),d.dlBox={x:d.plotX-e,y:d.plotY-e,width:2*e,height:2*e}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:v.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var b=this,c=this.len,d=this.chart,h=0,f=c,l=this.isXAxis,\\nv=l?\\\"xData\\\":\\\"yData\\\",u=this.min,w={},A=Math.min(d.plotWidth,d.plotHeight),C=Number.MAX_VALUE,D=-Number.MAX_VALUE,z=this.max-u,B=c/z,y=[];q(this.series,function(c){var h=c.options;!c.bubblePadding||!c.visible&&d.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,y.push(c),l&&(q([\\\"minSize\\\",\\\"maxSize\\\"],function(a){var b=h[a],c=/%$/.test(b),b=e(b);w[a]=c?A*b/100:b}),c.minPxSize=w.minSize,c.maxPxSize=Math.max(w.maxSize,w.minSize),c=a.grep(c.zData,a.isNumber),c.length&&(C=r(h.zMin,Math.min(C,Math.max(g(c),\\n!1===h.displayNegative?h.zThreshold:-Number.MAX_VALUE))),D=r(h.zMax,Math.max(D,m(c))))))});q(y,function(a){var c=a[v],d=c.length,e;l&&a.getRadii(C,D,a.minPxSize,a.maxPxSize);if(0k,f=b[d][1]>k,e!==f&&c<(b[d][0]-b[a][0])*(k-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(g=!g);return g}var g=a.Chart,l=a.each,f=a.extend,q=a.format,n=a.merge,u=a.win,r=a.wrap;g.prototype.transformFromLatLon=function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&\\nMath.sin(b.rotation);e=b.rotation?[e[0]*d+e[1]*h,-e[0]*h+e[1]*d]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};g.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e={x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=\\nb.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,\\\"WGS84\\\",b.rotation?{x:e.x*d+e.y*-h,y:e.x*h+e.y*d}:e);return{lat:b.y,lon:b.x}}};g.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,d;if(b){for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&m({x:e.x,y:-e.y},b[d].hitZone.coordinates[0]))return this.transformToLatLon(e,b[d]);return this.transformToLatLon(e,b[\\\"default\\\"])}a.error(22)};g.prototype.fromLatLonToPoint=function(e){var b=\\nthis.mapTransforms,d,h;if(!b)return a.error(22),{x:0,y:null};for(d in b)if(b.hasOwnProperty(d)&&b[d].hitZone&&(h=this.transformFromLatLon(e,b[d]),m({x:h.x,y:-h.y},b[d].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b[\\\"default\\\"])};a.geojson=function(a,b,d){var e=[],g=[],m=function(a){var b,c=a.length;g.push(\\\"M\\\");for(b=0;b(.*?$)/);e&&e[1]&&(e='\\\\x3cforeignObject x\\\\x3d\\\"0\\\" y\\\\x3d\\\"0\\\" width\\\\x3d\\\"'+b.chart.width+'\\\" height\\\\x3d\\\"'+b.chart.height+'\\\"\\\\x3e\\\\x3cbody xmlns\\\\x3d\\\"http://www.w3.org/1999/xhtml\\\"\\\\x3e'+e[1]+\\\"\\\\x3c/body\\\\x3e\\\\x3c/foreignObject\\\\x3e\\\",a=a.replace(\\\"\\\\x3c/svg\\\\x3e\\\",e+\\\"\\\\x3c/svg\\\\x3e\\\"))}a=a.replace(/zIndex=\\\"[^\\\"]+\\\"/g,\\n\\\"\\\").replace(/isShadow=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/symbolName=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/jQuery[0-9]+=\\\"[^\\\"]+\\\"/g,\\\"\\\").replace(/url\\\\((\\\"|")(\\\\S+)(\\\"|")\\\\)/g,\\\"url($2)\\\").replace(/url\\\\([^#]+#/g,\\\"url(#\\\").replace(/.*?$/,\\\"\\\\x3c/svg\\\\x3e\\\").replace(/(fill|stroke)=\\\"rgba\\\\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\\\\.]+)\\\\)\\\"/g,'$1\\\\x3d\\\"rgb($2)\\\" $1-opacity\\\\x3d\\\"$3\\\"').replace(/ /g,\\n\\\"\\\\u00a0\\\").replace(/­/g,\\\"\\\\u00ad\\\");this.ieSanitizeSVG&&(a=this.ieSanitizeSVG(a));return a},getChartHTML:function(){return this.container.innerHTML},getSVG:function(a){var b,e,c,v,m,g=p(this.options,a);e=r(\\\"div\\\",null,{position:\\\"absolute\\\",top:\\\"-9999em\\\",width:this.chartWidth+\\\"px\\\",height:this.chartHeight+\\\"px\\\"},z.body);c=this.renderTo.style.width;m=this.renderTo.style.height;c=g.exporting.sourceWidth||g.chart.width||/px$/.test(c)&&parseInt(c,10)||600;m=g.exporting.sourceHeight||g.chart.height||/px$/.test(m)&&\\nparseInt(m,10)||400;t(g.chart,{animation:!1,renderTo:e,forExport:!0,renderer:\\\"SVGRenderer\\\",width:c,height:m});g.exporting.enabled=!1;delete g.data;g.series=[];k(this.series,function(a){v=p(a.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:a.visible});v.isInternal||g.series.push(v)});k(this.axes,function(a){a.userOptions.internalKey||(a.userOptions.internalKey=f.uniqueKey())});b=new f.Chart(g,this.callback);a&&k([\\\"xAxis\\\",\\\"yAxis\\\",\\\"series\\\"],function(c){var d={};a[c]&&(d[c]=a[c],\\nb.update(d))});k(this.axes,function(a){var c=f.find(b.axes,function(b){return b.options.internalKey===a.userOptions.internalKey}),d=a.getExtremes(),e=d.userMin,d=d.userMax;c&&(void 0!==e&&e!==c.min||void 0!==d&&d!==c.max)&&c.setExtremes(e,d,!0,!1)});c=b.getChartHTML();C(this,\\\"getSVG\\\",{chartCopy:b});c=this.sanitizeSVG(c,g);g=null;b.destroy();D(e);return c},getSVGForExport:function(a,b){var e=this.options.exporting;return this.getSVG(p({chart:{borderRadius:0}},e.chartOptions,b,{exporting:{sourceWidth:a&&\\na.sourceWidth||e.sourceWidth,sourceHeight:a&&a.sourceHeight||e.sourceHeight}}))},exportChart:function(a,b){b=this.getSVGForExport(a,b);a=p(this.options.exporting,a);f.post(a.url,{filename:a.filename||\\\"chart\\\",type:a.type,width:a.width||0,scale:a.scale,svg:b},a.formAttributes)},print:function(){var a=this,b=a.container,e=[],c=b.parentNode,f=z.body,m=f.childNodes,g=a.options.exporting.printMaxWidth,d,n;if(!a.isPrinting){a.isPrinting=!0;a.pointer.reset(null,0);C(a,\\\"beforePrint\\\");if(n=g&&a.chartWidth>\\ng)d=[a.options.chart.width,void 0,!1],a.setSize(g,void 0,!1);k(m,function(a,b){1===a.nodeType&&(e[b]=a.style.display,a.style.display=\\\"none\\\")});f.appendChild(b);E.focus();E.print();setTimeout(function(){c.appendChild(b);k(m,function(a,b){1===a.nodeType&&(a.style.display=e[b])});a.isPrinting=!1;n&&a.setSize.apply(a,d);C(a,\\\"afterPrint\\\")},1E3)}},contextMenu:function(a,b,e,c,v,m,g){var d=this,n=d.options.navigation,h=d.chartWidth,H=d.chartHeight,p=\\\"cache-\\\"+a,l=d[p],w=Math.max(v,m),x,y;l||(d[p]=l=r(\\\"div\\\",\\n{className:a},{position:\\\"absolute\\\",zIndex:1E3,padding:w+\\\"px\\\",pointerEvents:\\\"auto\\\"},d.fixedDiv||d.container),x=r(\\\"div\\\",{className:\\\"highcharts-menu\\\"},null,l),u(x,t({MozBoxShadow:\\\"3px 3px 10px #888\\\",WebkitBoxShadow:\\\"3px 3px 10px #888\\\",boxShadow:\\\"3px 3px 10px #888\\\"},n.menuStyle)),y=function(){u(l,{display:\\\"none\\\"});g&&g.setState(0);d.openMenu=!1},d.exportEvents.push(q(l,\\\"mouseleave\\\",function(){l.hideTimer=setTimeout(y,500)}),q(l,\\\"mouseenter\\\",function(){f.clearTimeout(l.hideTimer)}),q(z,\\\"mouseup\\\",function(b){d.pointer.inClass(b.target,\\na)||y()}),q(l,\\\"click\\\",function(){d.openMenu&&y()})),k(b,function(a){\\\"string\\\"===typeof a&&(a=d.options.exporting.menuItemDefinitions[a]);if(f.isObject(a,!0)){var b;a.separator?b=r(\\\"hr\\\",null,null,x):(b=r(\\\"div\\\",{className:\\\"highcharts-menu-item\\\",onclick:function(b){b&&b.stopPropagation();y();a.onclick&&a.onclick.apply(d,arguments)},innerHTML:a.text||d.options.lang[a.textKey]},null,x),b.onmouseover=function(){u(this,n.menuItemHoverStyle)},b.onmouseout=function(){u(this,n.menuItemStyle)},u(b,t({cursor:\\\"pointer\\\"},\\nn.menuItemStyle)));d.exportDivElements.push(b)}}),d.exportDivElements.push(x,l),d.exportMenuWidth=l.offsetWidth,d.exportMenuHeight=l.offsetHeight);b={display:\\\"block\\\"};e+d.exportMenuWidth>h?b.right=h-e-v-w+\\\"px\\\":b.left=e-w+\\\"px\\\";c+m+d.exportMenuHeight>H&&\\\"top\\\"!==g.alignOptions.verticalAlign?b.bottom=H-c-w+\\\"px\\\":b.top=c+m-w+\\\"px\\\";u(l,b);d.openMenu=!0},addButton:function(a){var b=this,e=b.renderer,c=p(b.options.navigation.buttonOptions,a),f=c.onclick,m=c.menuItems,g,d,n=c.symbolSize||12;b.btnCount||(b.btnCount=\\n0);b.exportDivElements||(b.exportDivElements=[],b.exportSVGElements=[]);if(!1!==c.enabled){var h=c.theme,k=h.states,q=k&&k.hover,k=k&&k.select,l;delete h.states;f?l=function(a){a.stopPropagation();f.call(b,a)}:m&&(l=function(){b.contextMenu(d.menuClassName,m,d.translateX,d.translateY,d.width,d.height,d);d.setState(2)});c.text&&c.symbol?h.paddingLeft=B(h.paddingLeft,25):c.text||t(h,{width:c.width,height:c.height,padding:0});d=e.button(c.text,0,0,l,h,q,k).addClass(a.className).attr({\\\"stroke-linecap\\\":\\\"round\\\",\\ntitle:B(b.options.lang[c._titleKey],\\\"\\\")});d.menuClassName=a.menuClassName||\\\"highcharts-menu-\\\"+b.btnCount++;c.symbol&&(g=e.symbol(c.symbol,c.symbolX-n/2,c.symbolY-n/2,n,n,{width:n,height:n}).addClass(\\\"highcharts-button-symbol\\\").attr({zIndex:1}).add(d),g.attr({stroke:c.symbolStroke,fill:c.symbolFill,\\\"stroke-width\\\":c.symbolStrokeWidth||1}));d.add(b.exportingGroup).align(t(c,{width:d.width,x:B(c.x,b.buttonOffset)}),!0,\\\"spacingBox\\\");b.buttonOffset+=(d.width+c.buttonSpacing)*(\\\"right\\\"===c.align?-1:1);b.exportSVGElements.push(d,\\ng)}},destroyExport:function(a){var b=a?a.target:this;a=b.exportSVGElements;var e=b.exportDivElements,c=b.exportEvents,h;a&&(k(a,function(a,c){a&&(a.onclick=a.ontouchstart=null,h=\\\"cache-\\\"+a.menuClassName,b[h]&&delete b[h],b.exportSVGElements[c]=a.destroy())}),a.length=0);b.exportingGroup&&(b.exportingGroup.destroy(),delete b.exportingGroup);e&&(k(e,function(a,c){f.clearTimeout(a.hideTimer);I(a,\\\"mouseleave\\\");b.exportDivElements[c]=a.onmouseout=a.onmouseover=a.ontouchstart=a.onclick=null;D(a)}),e.length=\\n0);c&&(k(c,function(a){a()}),c.length=0)}});K.menu=function(a,b,e,c){return[\\\"M\\\",a,b+2.5,\\\"L\\\",a+e,b+2.5,\\\"M\\\",a,b+c/2+.5,\\\"L\\\",a+e,b+c/2+.5,\\\"M\\\",a,b+c-1.5,\\\"L\\\",a+e,b+c-1.5]};A.prototype.renderExporting=function(){var a=this,b=a.options.exporting,e=b.buttons,c=a.isDirtyExporting||!a.exportSVGElements;a.buttonOffset=0;a.isDirtyExporting&&a.destroyExport();c&&!1!==b.enabled&&(a.exportEvents=[],a.exportingGroup=a.exportingGroup||a.renderer.g(\\\"exporting-group\\\").attr({zIndex:3}).add(),F(e,function(b){a.addButton(b)}),\\na.isDirtyExporting=!1);q(a,\\\"destroy\\\",a.destroyExport)};q(A,\\\"init\\\",function(){var a=this;k([\\\"exporting\\\",\\\"navigation\\\"],function(b){a[b]={update:function(e,c){a.isDirtyExporting=!0;p(!0,a.options[b],e);B(c,!0)&&a.redraw()}}})});A.prototype.callbacks.push(function(a){a.renderExporting();q(a,\\\"redraw\\\",a.renderExporting)})})(h)});\\n\\n /* END modules/exporting.js*/\\n\\n /* BEGIN highcharts-3d.js */\\n\\n/*\\n Highcharts JS v6.1.1 (2018-06-27)\\n\\n 3D features for Highcharts JS\\n\\n @license: www.highcharts.com/license\\n*/\\n(function(A){\\\"object\\\"===typeof module&&module.exports?module.exports=A:A(Highcharts)})(function(A){(function(b){var u=b.deg2rad,z=b.pick;b.perspective3D=function(b,n,x){n=0e&&C-e>Math.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e+Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e+Math.PI/2,C,k,g))):CMath.PI/2+.0001?(B=B.concat(u(a,c,d,b,e,e-Math.PI/2,k,g)),B=B.concat(u(a,c,d,b,e-Math.PI/2,C,k,g))):\\n[\\\"C\\\",a+d*Math.cos(e)-d*t*E*Math.sin(e)+k,c+b*Math.sin(e)+b*t*E*Math.cos(e)+g,a+d*Math.cos(C)+d*t*E*Math.sin(C)+k,c+b*Math.sin(C)-b*t*E*Math.cos(C)+g,a+d*Math.cos(C)+k,c+b*Math.sin(C)+g]}var z=Math.cos,p=Math.PI,n=Math.sin,x=b.animObject,y=b.charts,m=b.color,h=b.defined,w=b.deg2rad,v=b.each,l=b.extend,a=b.inArray,e=b.map,f=b.merge,k=b.perspective,g=b.pick,d=b.SVGElement,c=b.SVGRenderer,q=b.wrap,t=4*(Math.sqrt(2)-1)/3/(p/2);c.prototype.toLinePath=function(a,c){var d=[];v(a,function(a){d.push(\\\"L\\\",a.x,\\na.y)});a.length&&(d[0]=\\\"M\\\",c&&d.push(\\\"Z\\\"));return d};c.prototype.toLineSegments=function(a){var c=[],d=!0;v(a,function(a){c.push(d?\\\"M\\\":\\\"L\\\",a.x,a.y);d=!d});return c};c.prototype.face3d=function(a){var c=this,d=this.createElement(\\\"path\\\");d.vertexes=[];d.insidePlotArea=!1;d.enabled=!0;q(d,\\\"attr\\\",function(a,d){if(\\\"object\\\"===typeof d&&(h(d.enabled)||h(d.vertexes)||h(d.insidePlotArea))){this.enabled=g(d.enabled,this.enabled);this.vertexes=g(d.vertexes,this.vertexes);this.insidePlotArea=g(d.insidePlotArea,\\nthis.insidePlotArea);delete d.enabled;delete d.vertexes;delete d.insidePlotArea;var B=k(this.vertexes,y[c.chartIndex],this.insidePlotArea),e=c.toLinePath(B,!0),B=b.shapeArea(B),B=this.enabled&&0b.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.faces.length;)c.faces.pop().destroy();for(;c.faces.lengthb.shapeArea(a)?g=[a,0]:0>b.shapeArea(d)&&(g=[d,1]);return g};v=m([3,2,1,0],[7,6,5,4]);a=v[0];l=v[1];v=m([1,6,7,0],[4,5,2,3]);t=v[0];\\nf=v[1];v=m([1,2,5,6],[0,7,4,3]);m=v[0];v=v[1];1===v?p+=1E4*(1E3-d):v||(p+=1E4*d);p+=10*(!f||0<=n&&180>=n||360>n&&357.5Math.PI&&(a=2*Math.PI-a);return a}var d=a.x,e=a.y,b=a.start,g=a.end-.00001,k=a.r,t=a.innerR,l=a.depth,f=a.alpha,r=a.beta,q=Math.cos(b),v=Math.sin(b);a=Math.cos(g);var m=Math.sin(g),h=k*Math.cos(r),k=k*Math.cos(f),y=t*Math.cos(r),x=t*Math.cos(f),t=l*Math.sin(r),w=l*Math.sin(f),l=[\\\"M\\\",d+h*q,e+k*v],l=l.concat(u(d,e,h,k,b,g,0,0)),l=l.concat([\\\"L\\\",d+y*a,e+x*m]),l=\\nl.concat(u(d,e,y,x,g,b,0,0)),l=l.concat([\\\"Z\\\"]),A=0-A?b:g>-A?-A:b,D=gF&&bp-r&&bc&&(m=Math.min(m,1-Math.abs((a+g)/(c+g))%1));et&&(m=0>t?Math.min(m,(f+d)/(-t+f+d)):Math.min(m,1-(f+d)/(t+d)%1));ka?-1:0},q=c([{x:e,y:g,z:d},{x:f,y:g,z:d},{x:f,y:g,z:0},{x:e,y:g,z:0}]),t=c([{x:e,y:k,z:0},{x:f,y:k,z:0},{x:f,y:k,z:d},{x:e,y:k,z:d}]),r=c([{x:e,y:k,z:0},{x:e,y:k,z:d},{x:e,y:g,z:d},{x:e,y:g,z:0}]),p=c([{x:f,y:k,z:d},{x:f,y:k,z:0},{x:f,y:g,z:0},{x:f,y:g,z:d}]),x=c([{x:e,y:g,z:0},{x:f,\\ny:g,z:0},{x:f,y:k,z:0},{x:e,y:k,z:0}]),c=c([{x:e,y:k,z:d},{x:f,y:k,z:d},{x:f,y:g,z:d},{x:e,y:g,z:d}]),w=!1,G=!1,u=!1,z=!1;n([].concat(h.xAxis,h.yAxis,h.zAxis),function(a){a&&(a.horiz?a.opposite?G=!0:w=!0:a.opposite?z=!0:u=!0)});var A=function(a,c,d){for(var b=[\\\"size\\\",\\\"color\\\",\\\"visible\\\"],e={},g=0;gd*e[b][c]?b=g:d*e[g][c]===d*e[b][c]&&e[g].zthis.pos&&(b.isArray(this.start)||b.isArray(this.end))){var l=this.start||[1,0,0,1,0,0],a=this.end||[1,0,0,1,0,0];h=[];for(var e=0;6>e;e++)h.push(this.pos*\\na[e]+(1-this.pos)*l[e])}else h=this.end;this.elem.attr(this.prop,h,null,!0)}})(A);(function(b){function u(d,c,b){if(!d.chart.is3d()||\\\"colorAxis\\\"===d.coll)return c;var g=d.chart,k=y*g.options.chart.options3d.alpha,f=y*g.options.chart.options3d.beta,l=a(b&&d.options.title.position3d,d.options.labels.position3d);b=a(b&&d.options.title.skew3d,d.options.labels.skew3d);var h=g.frame3d,q=g.plotLeft,m=g.plotWidth+q,n=g.plotTop,p=g.plotHeight+n,g=!1,w=0,x=0,u={x:0,y:1,z:0};c=d.swapZ({x:c.x,y:c.y,z:0});if(d.isZAxis)if(d.opposite){if(null===\\nh.axes.z.top)return{};x=c.y-n;c.x=h.axes.z.top.x;c.y=h.axes.z.top.y;q=h.axes.z.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.z.bottom)return{};x=c.y-p;c.x=h.axes.z.bottom.x;c.y=h.axes.z.bottom.y;q=h.axes.z.bottom.xDir;g=!h.bottom.frontFacing}else if(d.horiz)if(d.opposite){if(null===h.axes.x.top)return{};x=c.y-n;c.y=h.axes.x.top.y;c.z=h.axes.x.top.z;q=h.axes.x.top.xDir;g=!h.top.frontFacing}else{if(null===h.axes.x.bottom)return{};x=c.y-p;c.y=h.axes.x.bottom.y;c.z=h.axes.x.bottom.z;q=h.axes.x.bottom.xDir;\\ng=!h.bottom.frontFacing}else if(d.opposite){if(null===h.axes.y.right)return{};w=c.x-m;c.x=h.axes.y.right.x;c.z=h.axes.y.right.z;q=h.axes.y.right.xDir;q={x:q.z,y:q.y,z:-q.x}}else{if(null===h.axes.y.left)return{};w=c.x-q;c.x=h.axes.y.left.x;c.z=h.axes.y.left.z;q=h.axes.y.left.xDir}\\\"chart\\\"!==l&&(\\\"flap\\\"===l?d.horiz?(f=Math.sin(k),k=Math.cos(k),d.opposite&&(f=-f),g&&(f=-f),u={x:q.z*f,y:k,z:-q.x*f}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:\\\"ortho\\\"===l?d.horiz?(u=Math.cos(k),l=Math.sin(f)*u,k=-Math.sin(k),f=\\n-u*Math.cos(f),u={x:q.y*f-q.z*k,y:q.z*l-q.x*f,z:q.x*k-q.y*l},k=1/Math.sqrt(u.x*u.x+u.y*u.y+u.z*u.z),g&&(k=-k),u={x:k*u.x,y:k*u.y,z:k*u.z}):q={x:Math.cos(f),y:0,z:Math.sin(f)}:d.horiz?u={x:Math.sin(f)*Math.sin(k),y:Math.cos(k),z:-Math.cos(f)*Math.sin(k)}:q={x:Math.cos(f),y:0,z:Math.sin(f)});c.x+=w*q.x+x*u.x;c.y+=w*q.y+x*u.y;c.z+=w*q.z+x*u.z;g=v([c],d.chart)[0];b&&(0>e(v([c,{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart))&&(q={x:-q.x,y:-q.y,z:-q.z}),d=v([{x:c.x,y:c.y,z:c.z},\\n{x:c.x+q.x,y:c.y+q.y,z:c.z+q.z},{x:c.x+u.x,y:c.y+u.y,z:c.z+u.z}],d.chart),g.matrix=[d[1].x-d[0].x,d[1].y-d[0].y,d[2].x-d[0].x,d[2].y-d[0].y,g.x,g.y],g.matrix[4]-=g.x*g.matrix[0]+g.y*g.matrix[2],g.matrix[5]-=g.x*g.matrix[1]+g.y*g.matrix[3]);return g}var z,p=b.addEvent,n=b.Axis,x=b.Chart,y=b.deg2rad,m=b.each,h=b.extend,w=b.merge,v=b.perspective,l=b.perspective3D,a=b.pick,e=b.shapeArea,f=b.splat,k=b.Tick,g=b.wrap;w(!0,n.prototype.defaultOptions,{labels:{position3d:\\\"offset\\\",skew3d:!1},title:{position3d:null,\\nskew3d:null}});p(n,\\\"afterSetOptions\\\",function(){var d;this.chart.is3d&&this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll&&(d=this.options,d.tickWidth=a(d.tickWidth,0),d.gridLineWidth=a(d.gridLineWidth,1))});g(n.prototype,\\\"getPlotLinePath\\\",function(a){var c=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll||null===c)return c;var d=this.chart,b=d.options.chart.options3d,b=this.isZAxis?d.plotWidth:b.depth,d=d.frame3d,c=[this.swapZ({x:c[1],y:c[2],z:0}),this.swapZ({x:c[1],\\ny:c[2],z:b}),this.swapZ({x:c[4],y:c[5],z:0}),this.swapZ({x:c[4],y:c[5],z:b})],b=[];this.horiz?(this.isZAxis?(d.left.visible&&b.push(c[0],c[2]),d.right.visible&&b.push(c[1],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3])),d.top.visible&&b.push(c[0],c[1]),d.bottom.visible&&b.push(c[2],c[3])):(d.front.visible&&b.push(c[0],c[2]),d.back.visible&&b.push(c[1],c[3]),d.left.visible&&b.push(c[0],c[1]),d.right.visible&&b.push(c[2],c[3]));b=v(b,this.chart,!1);return this.chart.renderer.toLineSegments(b)});\\ng(n.prototype,\\\"getLinePath\\\",function(a){return this.chart.is3d()&&\\\"colorAxis\\\"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))});g(n.prototype,\\\"getPlotBandPath\\\",function(a){if(!this.chart.is3d()||\\\"colorAxis\\\"===this.coll)return a.apply(this,[].slice.call(arguments,1));var c=arguments,d=c[2],b=[],c=this.getPlotLinePath(c[1]),d=this.getPlotLinePath(d);if(c&&d)for(var e=0;e=u.min&&h<=u.max:!1):m.plotZ=0,m.axisXpos=m.plotX,m.axisYpos=m.plotY,m.axisZpos=m.plotZ,y.push({x:m.plotX,y:m.plotY,z:m.plotZ});b=z(y,b,!0);for(w=0;wh&&(c[a[1]]+=c[a[0]]+g,c[a[0]]=-g,h=0);h+c[a[1]]>b[a[0]+\\\"Axis\\\"].len&&0!==c[a[1]]&&(c[a[1]]=b[a[0]+\\\"Axis\\\"].len-c[a[0]]);if(0!==c[a[1]]&&(c[a[0]]>=b[a[0]+\\\"Axis\\\"].len||c[a[0]]+c[a[1]]<=g)){for(var e in c)c[e]=0;d.outside3dPlot=!0}});d.shapeType=\\\"cuboid\\\";c.z=k;c.depth=f;c.insidePlotArea=!0;e=n([{x:e[0],y:e[1],z:k}],a,!0)[0];d.tooltipPos=[e.x,e.y]}});b.z=k};v(m.column.prototype,\\\"animate\\\",function(b){if(this.chart.is3d()){var a=\\narguments[1],e=this.yAxis,f=this,k=this.yAxis.reversed;w&&(a?p(f.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,k||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(p(f.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,f.options.animation))}),this.drawDataLabels(),f.animate=null))}else b.apply(this,[].slice.call(arguments,1))});\\nv(m.column.prototype,\\\"plotGroup\\\",function(b,a,e,f,k,g){this.chart.is3d()&&g&&!this[a]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g(\\\"columnGroup\\\").add(g)),this[a]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[a].survive=!0);return b.apply(this,Array.prototype.slice.call(arguments,1))});v(m.column.prototype,\\\"setVisible\\\",function(b,a){var e=this,f;e.chart.is3d()&&p(e.data,function(b){f=(b.visible=b.options.visible=a=void 0===a?!b.visible:a)?\\\"visible\\\":\\n\\\"hidden\\\";e.options.data[h(b,e.data)]=b.options;b.graphic&&b.graphic.attr({visibility:f})});b.apply(this,Array.prototype.slice.call(arguments,1))});m.column.prototype.handle3dGrouping=!0;z(y,\\\"afterInit\\\",function(){if(this.chart.is3d()&&this.handle3dGrouping){var b=this.options,a=b.grouping,e=b.stacking,f=x(this.yAxis.options.reversedStacks,!0),k=0;if(void 0===a||a){a=this.chart.retrieveStacks(e);k=b.stack||0;for(e=0;eC||C>m?(++C,n=\\\"\\\"):(!isNaN(parseFloat(n))&&isFinite(n)?(n=parseFloat(n),f(\\\"number\\\")):isNaN(Date.parse(n))?f(\\\"string\\\"):(n=n.replace(/\\\\//g,\\\"-\\\"),f(\\\"date\\\")),h.lengtht[\\\",\\\"]?\\\";\\\":\\\",\\\";d.decimalPoint||(d.decimalPoint=b>c?\\\".\\\":\\\",\\\",e.decimalRegex=new RegExp(\\\"^(-?[0-9]+)\\\"+d.decimalPoint+\\\"([0-9]+)$\\\"));return f}function f(a,b){var c,f,g=0,l=!1,h=[],n=[],k;if(!b||b>a.length)b=a.length;for(;gc[k]?\\\"YY\\\":\\\"YYYY\\\":12=c[k]?(f[k]=\\\"dd\\\",l=!0):f[k].length||(f[k]=\\\"mm\\\")));if(l){for(k=0;ka)a=0;if(!g||g>=l.length)g=l.length-1;d.itemDelimiter?\\nq=d.itemDelimiter:(q=null,q=c(l));for(var G=0,n=a;n<=g;n++)\\\"#\\\"===l[n][0]?G++:b(l[n],n-a-G);d.columnTypes&&0!==d.columnTypes.length||!v.length||!v[0].length||\\\"date\\\"!==v[0][1]||d.dateFormat||(d.dateFormat=f(h[0]));this.dataFound()}return h},parseTable:function(){var a=this.options,b=a.table,c=this.columns,f=a.startRow||0,e=a.endRow||Number.MAX_VALUE,d=a.startColumn||0,l=a.endColumn||Number.MAX_VALUE;b&&(\\\"string\\\"===typeof b&&(b=p.getElementById(b)),u(b.getElementsByTagName(\\\"tr\\\"),function(a,b){b>=f&&\\nb<=e&&u(a.children,function(a,e){(\\\"TD\\\"===a.tagName||\\\"TH\\\"===a.tagName)&&e>=d&&e<=l&&(c[e-d]||(c[e-d]=[]),c[e-d][b-f]=a.innerHTML)})}),this.dataFound());return c},fetchLiveData:function(){function a(w){function g(g,l,q){function n(){e&&b.liveDataURL===g&&(b.liveDataTimeout=setTimeout(a,d))}if(!g||0!==g.indexOf(\\\"http\\\"))return g&&c.error&&c.error(\\\"Invalid URL\\\"),!1;w&&(clearTimeout(b.liveDataTimeout),b.liveDataURL=g);h.ajax({url:g,dataType:q||\\\"json\\\",success:function(a){b&&b.series&&l(a);n()},error:function(a,\\nb){3>++f&&n();return c.error&&c.error(b,a)}});return!0}g(l.csvURL,function(a){b.update({data:{csv:a}})},\\\"text\\\")||g(l.rowsURL,function(a){b.update({data:{rows:a}})})||g(l.columnsURL,function(a){b.update({data:{columns:a}})})}var b=this.chart,c=this.options,f=0,e=c.enablePolling,d=1E3*(c.dataRefreshRate||2),l=A(c);if(!c||!c.csvURL&&!c.rowsURL&&!c.columnsURL)return!1;1E3>d&&(d=1E3);delete c.csvURL;delete c.rowsURL;delete c.columnsURL;a(!0);return c&&(c.csvURL||c.rowsURL||c.columnsURL)},parseGoogleSpreadsheet:function(){function a(b){var e=\\n[\\\"https://spreadsheets.google.com/feeds/cells\\\",f,d,\\\"public/values?alt\\\\x3djson\\\"].join(\\\"/\\\");h.ajax({url:e,dataType:\\\"json\\\",success:function(d){b(d);c.enablePolling&&setTimeout(function(){a(b)},c.dataRefreshRate)},error:function(a,b){return c.error&&c.error(b,a)}})}var b=this,c=this.options,f=c.googleSpreadsheetKey,e=this.chart,d=c.googleSpreadsheetWorksheet||1,l=c.startRow||0,w=c.endRow||Number.MAX_VALUE,g=c.startColumn||0,m=c.endColumn||Number.MAX_VALUE,p=1E3*(c.dataRefreshRate||2);4E3>p&&(p=4E3);f&&\\n(delete c.googleSpreadsheetKey,a(function(a){var c=[];a=a.feed.entry;var d,f=(a||[]).length,h=0,p,q,r;if(!a||0===a.length)return!1;for(r=0;r=g&&r<=m&&(c[r-g]=[]);for(r=0;r=g&&p<=m&&h>=l&&h<=w&&(q=d.gs$cell||d.content,d=null,q.numericValue?d=0<=q.$t.indexOf(\\\"/\\\")||0<=q.$t.indexOf(\\\"-\\\")?q.$t:0a[e+1])):(h&&h.length&&(q=this.parseDate(d)),p&&F(q)&&\\\"float\\\"!==\\nu?(n[e]=d,a[e]=q,a.isDatetime=!0,void 0!==a[e+1]&&(d=q>a[e+1],d!==t&&void 0!==t&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,e=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0),t=d)):(a[e]=\\\"\\\"===h?null:h,0!==e&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));p&&a.mixed&&(f[b]=c[b]);if(p&&t&&this.options.sort)for(b=0;b(new Date).getFullYear()-2E3?b+1900:b+2E3;return Date.UTC(b,\\na[2]-1,+a[1])},alternative:\\\"mm/dd/YY\\\"},\\\"mm/dd/YY\\\":{regex:/^([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{1,2})[\\\\-\\\\/\\\\.]([0-9]{2})$/,parser:function(a){return Date.UTC(+a[3]+2E3,a[1]-1,+a[2])}}},parseDate:function(a){var b=this.options.parseDate,c,f,e=this.options.dateFormat||this.dateFormat,d;if(b)c=b(a);else if(\\\"string\\\"===typeof a){if(e)(b=this.dateFormats[e])||(b=this.dateFormats[\\\"YYYY/mm/dd\\\"]),(d=a.match(b.regex))&&(c=b.parser(d));else for(f in this.dateFormats)if(b=this.dateFormats[f],d=a.match(b.regex)){this.dateFormat=\\nf;this.alternativeFormat=b.alternative;c=b.parser(d);break}d||(d=Date.parse(a),\\\"object\\\"===typeof d&&null!==d&&d.getTime?c=d.getTime()-6E4*d.getTimezoneOffset():F(d)&&(c=d-6E4*(new Date(d)).getTimezoneOffset()))}return c},rowsToColumns:function(a){var b,c,f,e,d;if(a)for(d=[],c=a.length,b=0;b ' + this.series.name + '
' +\n", " this.point.y + ' ' + this.point.name.toLowerCase();\n", " } },\"adapter\": \"highcharts\",\"series\": [{ \"type\": null,\"name\": null,\"data\": [ ] }] };\n", " \n", - " window.chart_kfexbrmagqd = new Highcharts.Chart(options);\n", + " window.chart_raisvnfpxhy = new Highcharts.Chart(options);\n", "\n", " });\n", " \n", "\n", - "
" + "
" ], "text/plain": [ - "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
abc
one11111
two21222
three31333
four41444
five51555
\\n\\n
\"" + "\"\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n
abc
one11111
two21222
three31333
four41444
five51555
\\n\\n
\"" ] }, "execution_count": 6,